summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2015-05-05 09:54:25 (GMT)
committerKevin Smith <git@kismith.co.uk>2015-05-05 09:54:52 (GMT)
commitc711267167ab73a72b1452025dcf87463b7fdeba (patch)
tree694fd017f7c80b94634d1099ae3a258a7e0c0394
parent9f5bd1618ef47dce55f4a7afba12512738b421dd (diff)
downloadstroke-c711267167ab73a72b1452025dcf87463b7fdeba.zip
stroke-c711267167ab73a72b1452025dcf87463b7fdeba.tar.bz2
Fix default initialisation
The recent change introducing the DiscoInfoResponder didn't initialise the member variable, leading to crashes in Stroke. Test-Information: Blind Change-Id: I1b9de02fae82990db3882c8f1d58cca76555944e
-rw-r--r--src/com/isode/stroke/disco/DiscoInfoResponder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/isode/stroke/disco/DiscoInfoResponder.java b/src/com/isode/stroke/disco/DiscoInfoResponder.java
index c0edca2..8265017 100644
--- a/src/com/isode/stroke/disco/DiscoInfoResponder.java
+++ b/src/com/isode/stroke/disco/DiscoInfoResponder.java
@@ -14,7 +14,7 @@ import com.isode.stroke.queries.GetResponder;
import com.isode.stroke.queries.IQRouter;
public class DiscoInfoResponder extends GetResponder<DiscoInfo> {
- private DiscoInfo info_;
+ private DiscoInfo info_ = new DiscoInfo();
private Map<String, DiscoInfo> nodeInfo_ = new HashMap<String, DiscoInfo>();
public DiscoInfoResponder(IQRouter router) {