Skip to content
Browse files

Fix for NullPointerException at DLNAResource.java, line 919.

  • Loading branch information...
1 parent 5aae601 commit 39ddc8fc771e5a93d5bed9504e7b92e67c8a495a @Raptor399 Raptor399 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/net/pms/dlna/DLNAResource.java
View
2 src/main/java/net/pms/dlna/DLNAResource.java
@@ -916,7 +916,7 @@ public String getDisplayName(RendererConfiguration mediaRenderer) {
}
if (isSrtFile() && (getMediaAudio() == null && getMediaSubtitle() == null)
- && getPlayer() == null || getPlayer().isExternalSubtitlesSupported()) {
+ && getPlayer() == null || (getPlayer() != null && getPlayer().isExternalSubtitlesSupported())) {
name += " {External Subtitles}";
}

0 comments on commit 39ddc8f

Please sign in to comment.
Something went wrong with that request. Please try again.