Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Prevent Mapping.getSources from returning null #126

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/java/org/codehaus/mojo/rpm/Mapping.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

Expand Down Expand Up @@ -308,7 +309,7 @@ public void setGroupname( String grpname )
*/
public List<Source> getSources()
{
return sources;
return sources != null ? sources : Collections.<Source>emptyList();
}

/**
Expand Down