This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix for NullPointerException at RootFolder.java, line 632 (issue 1243).

  • Loading branch information...
Raptor399 committed Nov 26, 2011
1 parent e23f5e6 commit 6ce85d543530107a91c5719a7fbb77f67c3d571a
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/net/pms/dlna/RootFolder.java
@@ -629,7 +629,8 @@ private DLNAResource getiTunesFolder() {
HashMap<?, ?> td = (HashMap<?, ?>) t;
track = (HashMap<?, ?>) Tracks.get(td.get("Track ID").toString());
- if (track != null && track.get("Location").toString().startsWith("file://")) {
+ if (track != null && track.get("Location") != null
+ && track.get("Location").toString().startsWith("file://")) {
URI tURI2 = new URI(track.get("Location").toString());
RealFile file = new RealFile(new File(URLDecoder.decode(tURI2.toURL().getFile(), "UTF-8")));
pf.addChild(file);

0 comments on commit 6ce85d5

Please sign in to comment.