[libbluray-devel] Check for null

hpi1 git at videolan.org
Fri Oct 2 11:14:09 CEST 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Oct  2 12:09:38 2015 +0300| [c0e6c2d2328b0ed4698be2e367e68005355450c4] | committer: hpi1

Check for null

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

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

diff --git a/src/libbluray/bdj/java/javax/tv/service/navigation/ServiceTypeFilter.java b/src/libbluray/bdj/java/javax/tv/service/navigation/ServiceTypeFilter.java
index 0333302..250821e 100644
--- a/src/libbluray/bdj/java/javax/tv/service/navigation/ServiceTypeFilter.java
+++ b/src/libbluray/bdj/java/javax/tv/service/navigation/ServiceTypeFilter.java
@@ -24,6 +24,8 @@ import javax.tv.service.ServiceType;
 public final class ServiceTypeFilter extends ServiceFilter {
     public ServiceTypeFilter(ServiceType type)
     {
+        if (type == null)
+            throw new NullPointerException();
         this.type = type;
     }
 



More information about the libbluray-devel mailing list