Skip to content
This repository has been archived by the owner on Feb 9, 2018. It is now read-only.

Commit

Permalink
Apply Raptor399's NPE fix
Browse files Browse the repository at this point in the history
From 9389ab6
  • Loading branch information
SubJunk committed Jul 8, 2012
1 parent 35f3ab3 commit b52d066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/pms/dlna/DLNAMediaInfo.java
Expand Up @@ -1085,7 +1085,7 @@ public String toString() {
}
}
for (DLNAMediaSubtitle sub : getSubtitleTracksList()) {
s += "\n\tsub: id=" + sub.getId() + " / lang: " + sub.getLang() + " / flavor: " + sub.getFlavor() + " / type: " + sub.getType().toString();
s += "\n\tsub: id=" + sub.getId() + " / lang: " + sub.getLang() + " / flavor: " + sub.getFlavor() + " / type: " + (sub.getType() != null ? sub.getType().toString() : "null");
}
return s;
}
Expand Down

0 comments on commit b52d066

Please sign in to comment.