Permalink
Browse files

Fixed NullPointerException when using ShowDVDTitleDuration

  • Loading branch information...
1 parent aa94d81 commit 6330a935436dbb01921b4a7fd2584e1e341c5f85 @Raptor399 Raptor399 committed Nov 7, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 CHANGELOG.txt
  2. +2 −1 src/main/java/net/pms/dlna/DLNAResource.java
View
1 CHANGELOG.txt
@@ -2,6 +2,7 @@ Changelog:
==========
1.71.1 - 2012-??-??
+ - Fixed bug that occurred when using ShowDVDTitleDuration
1.71.0 - 2012-11-06
View
3 src/main/java/net/pms/dlna/DLNAResource.java
@@ -982,7 +982,8 @@ public String getDisplayName(RendererConfiguration mediaRenderer) {
}
// Handle DVD track duration
- if (mediaRenderer != null && mediaRenderer.isShowDVDTitleDuration() && getMedia().getDvdtrack() > 0) {
+ if (mediaRenderer != null && mediaRenderer.isShowDVDTitleDuration()
+ && getMedia() != null && getMedia().getDvdtrack() > 0) {
dvdTrackDuration = getMedia().getDurationString();
} else {
format = smartRemove(format, "%d", false);

0 comments on commit 6330a93

Please sign in to comment.