From 54587c45febd330e2b8e117fe0815569bd37e366 Mon Sep 17 00:00:00 2001 From: Mili Verma Date: Tue, 24 Jan 2012 17:30:08 +0000 Subject: Fix to make DiscoItems work This fixes crashes. Test-information: No more errors. diff --git a/src/com/isode/stroke/elements/DiscoItems.java b/src/com/isode/stroke/elements/DiscoItems.java index ac92cb3..8ecd12a 100644 --- a/src/com/isode/stroke/elements/DiscoItems.java +++ b/src/com/isode/stroke/elements/DiscoItems.java @@ -91,7 +91,7 @@ public class DiscoItems extends Payload { public void addItem(Item item) { items_.add(item); } - private String node_; + private String node_ = ""; private final List items_ = new ArrayList(); } diff --git a/src/com/isode/stroke/parser/payloadparsers/DiscoItemsParser.java b/src/com/isode/stroke/parser/payloadparsers/DiscoItemsParser.java index caf75cf..091fd32 100644 --- a/src/com/isode/stroke/parser/payloadparsers/DiscoItemsParser.java +++ b/src/com/isode/stroke/parser/payloadparsers/DiscoItemsParser.java @@ -14,7 +14,7 @@ import com.isode.stroke.jid.JID; import com.isode.stroke.parser.AttributeMap; import com.isode.stroke.parser.GenericPayloadParser; -class DiscoItemsParser extends GenericPayloadParser { +public class DiscoItemsParser extends GenericPayloadParser { public DiscoItemsParser() { super(new DiscoItems()); } -- cgit v0.10.2-6-g49f6