From c711267167ab73a72b1452025dcf87463b7fdeba Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Tue, 5 May 2015 10:54:25 +0100 Subject: 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 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 { - private DiscoInfo info_; + private DiscoInfo info_ = new DiscoInfo(); private Map nodeInfo_ = new HashMap(); public DiscoInfoResponder(IQRouter router) { -- cgit v0.10.2-6-g49f6