[libbluray-devel] Fix null checks
hpi1
git at videolan.org
Wed Aug 27 10:48:47 CEST 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Aug 27 11:35:38 2014 +0300| [649ab343d7738073f1a9d7985d49d5892a6afc68] | committer: hpi1
Fix null checks
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=649ab343d7738073f1a9d7985d49d5892a6afc68
---
src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java b/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java
index 41f7aa6..f4bc1dc 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java
@@ -30,10 +30,12 @@ public class BDJThreadGroup extends ThreadGroup {
public void uncaughtException(Thread t, Throwable e) {
String stack = "";
- StackTraceElement elems[] = e.getStackTrace();
if (e != null) {
- for (int i = 0; i < elems.length; i++)
- stack += "\n\t" + elems[i].toString();
+ StackTraceElement elems[] = e.getStackTrace();
+ if (elems != null) {
+ for (int i = 0; i < elems.length; i++)
+ stack += "\n\t" + elems[i].toString();
+ }
}
if (e instanceof ThreadDeath) {
More information about the libbluray-devel
mailing list