[libbluray-devel] Fixed null pointer dereference in AppEntry
hpi1
git at videolan.org
Sun Feb 3 13:38:07 CET 2013
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Feb 3 14:36:40 2013 +0200| [19913dc7795dfc74f2d0d21696d0194d3da68b1b] | committer: hpi1
Fixed null pointer dereference in AppEntry
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=19913dc7795dfc74f2d0d21696d0194d3da68b1b
---
src/libbluray/bdj/java/org/videolan/bdjo/AppEntry.java | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/libbluray/bdj/java/org/videolan/bdjo/AppEntry.java b/src/libbluray/bdj/java/org/videolan/bdjo/AppEntry.java
index 98ad16d..4a6b9dd 100644
--- a/src/libbluray/bdj/java/org/videolan/bdjo/AppEntry.java
+++ b/src/libbluray/bdj/java/org/videolan/bdjo/AppEntry.java
@@ -32,11 +32,15 @@ public class AppEntry implements AppAttributes {
pm.read(p);
String lang = p.getMostFavourite();
if (lang != null)
- try {
- return getName(lang);
- } catch (LanguageNotAvailableException e) {
+ try {
+ return getName(lang);
+ } catch (LanguageNotAvailableException e) {
+
+ }
+ if (names == null || names.length < 1) {
+ return null;
+ }
- }
return names[0][1];
}
More information about the libbluray-devel
mailing list