[libbluray-devel] Check for null

hpi1 git at videolan.org
Wed Apr 13 11:34:38 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Apr 13 12:25:01 2016 +0300| [fa4b1b237f1a5e09e889c9bfb29f561223e32500] | committer: hpi1

Check for null

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=fa4b1b237f1a5e09e889c9bfb29f561223e32500
---

 src/libbluray/bdj/java/org/dvb/ui/FontFactory.java |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java/org/dvb/ui/FontFactory.java b/src/libbluray/bdj/java/org/dvb/ui/FontFactory.java
index ab3ab4b..ef9c682 100644
--- a/src/libbluray/bdj/java/org/dvb/ui/FontFactory.java
+++ b/src/libbluray/bdj/java/org/dvb/ui/FontFactory.java
@@ -155,7 +155,8 @@ public class FontFactory {
         /* Factory created for fonts in dvb.fontindex */
         Font font = null;
         synchronized (fontsLock) {
-            font = (Font)fonts.get(name + "." + style);
+            if (fonts != null)
+                font = (Font)fonts.get(name + "." + style);
         }
 
         if (font == null) {



More information about the libbluray-devel mailing list