Menu

#195 MP3info null pointer

open
nobody
None
5
2008-04-03
2008-04-03
Anonymous
No

For some cases, MP3Info will throw a null pointer --
added a check to make sure properties is not null

Index: Mp3File.java

RCS file: /cvsroot/galleon/galleon/src/org/lnicholls/galleon/media/Mp3File.java,v
retrieving revision 1.20
diff -u -r1.20 Mp3File.java
--- Mp3File.java 2 Jun 2007 20:32:41 -0000 1.20
+++ Mp3File.java 3 Apr 2008 04:40:21 -0000
@@ -491,6 +491,7 @@
* System.out.println(key+"="+properties.get(key)); }
*/

+ if (properties != null) {
if (properties.containsKey("mp3.id3tag.v2")) {
try {
InputStream frames = (InputStream) properties.get("mp3.id3tag.v2");
@@ -584,6 +585,7 @@
} catch (Exception e1) {
}
}
+ }
}
}

Discussion


Log in to post a comment.