Skip to content

Commit

Permalink
fix NPE in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
bubbleguuum authored and Christian Bauer committed Jan 22, 2014
1 parent 2414641 commit 977ae33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public MusicTrack(String id, Container parent, String title, String creator, Str
}

public MusicTrack(String id, String parentID, String title, String creator, String album, String artist, Res... resource) {
this(id, parentID, title, creator, album, new PersonWithRole(artist), resource);
this(id, parentID, title, creator, album, artist == null ? null : new PersonWithRole(artist), resource);
}

public MusicTrack(String id, String parentID, String title, String creator, String album, PersonWithRole artist, Res... resource) {
Expand Down

0 comments on commit 977ae33

Please sign in to comment.