[libbluray-devel] Add null check

hpi1 git at videolan.org
Tue Sep 22 14:03:51 CEST 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Sep 17 18:26:46 2015 +0300| [b86d654372e773eec3e49f674051201a2b583c55] | committer: hpi1

Add null check

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

 src/libbluray/bdj/java/javax/tv/service/navigation/StreamType.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libbluray/bdj/java/javax/tv/service/navigation/StreamType.java b/src/libbluray/bdj/java/javax/tv/service/navigation/StreamType.java
index 5824b44..26dc166 100644
--- a/src/libbluray/bdj/java/javax/tv/service/navigation/StreamType.java
+++ b/src/libbluray/bdj/java/javax/tv/service/navigation/StreamType.java
@@ -22,6 +22,8 @@ package javax.tv.service.navigation;
 public class StreamType {
     protected StreamType(String name)
     {
+        if (name == null)
+            throw new NullPointerException();
         this.name = name;
     }
 



More information about the libbluray-devel mailing list