summaryrefslogtreecommitdiff
path: root/org
diff options
context:
space:
mode:
authorMatthew Johnson <mjj29@matthew.ath.cx>2008-07-21 11:45:51 +0100
committerMatthew Johnson <mjj29@matthew.ath.cx>2008-07-21 11:45:51 +0100
commita44e6a460ad34f7bb0fc21868afab35467b0fe59 (patch)
tree0cb2ead8c35fa367e673e2167bcedd8ee8a55f86 /org
parenta57a7e7224e33c38ad4a5b47c91322045d750645 (diff)
* Fix for possible NPex in DBusDaemon
* Add hexdump.jar to Class-Path for libdbus-java.jar
Diffstat (limited to 'org')
-rw-r--r--org/freedesktop/dbus/bin/DBusDaemon.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org/freedesktop/dbus/bin/DBusDaemon.java b/org/freedesktop/dbus/bin/DBusDaemon.java
index 30ecff9..bedaff3 100644
--- a/org/freedesktop/dbus/bin/DBusDaemon.java
+++ b/org/freedesktop/dbus/bin/DBusDaemon.java
@@ -609,7 +609,7 @@ public class DBusDaemon extends Thread
while (_run) {
try {
Message m;
- Connstruct c;
+ Connstruct c = null;
WeakReference<Connstruct> wc;
synchronized (inqueue) {
while (0 == inqueue.size()) try {
@@ -618,7 +618,8 @@ public class DBusDaemon extends Thread
m = inqueue.head();
wc = inqueue.remove(m);
- c = wc.get();
+ if (null != wc)
+ c = wc.get();
}
if (null != c) {
if (Debug.debug) Debug.print(Debug.INFO, "<inqueue> Got message "+m+" from "+c.unique);