[libbluray-devel] Return empty ID instead of null

hpi1 git at videolan.org
Sun Apr 17 21:41:58 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Apr 17 19:23:26 2016 +0300| [42d883f162373828ed55e7dcda9ed4c6efec3f3c] | committer: hpi1

Return empty ID instead of null

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

 src/libbluray/bdj/java/com/aacsla/bluray/online/DeviceAttribute.java |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libbluray/bdj/java/com/aacsla/bluray/online/DeviceAttribute.java b/src/libbluray/bdj/java/com/aacsla/bluray/online/DeviceAttribute.java
index 8218a7d..05a88ef 100644
--- a/src/libbluray/bdj/java/com/aacsla/bluray/online/DeviceAttribute.java
+++ b/src/libbluray/bdj/java/com/aacsla/bluray/online/DeviceAttribute.java
@@ -30,6 +30,7 @@ public class DeviceAttribute {
         byte bid[] = Libbluray.getAacsData(Libbluray.AACS_DEVICE_BINDING_ID);
         if (bid == null) {
             Logger.getLogger(DeviceAttribute.class.getName()).warning("getDeviceBindingID() failed");
+            return new byte[16];
         }
         return bid;
     }



More information about the libbluray-devel mailing list