diff options
author | Mili Verma <mili.verma@isode.com> | 2012-01-24 17:30:08 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-01-24 17:31:43 (GMT) |
commit | 54587c45febd330e2b8e117fe0815569bd37e366 (patch) | |
tree | d44b122358becc956246e1a8122449fc30850cee | |
parent | 0631c281670278ad319d07050d599d2ebbdc67c2 (diff) | |
download | stroke-54587c45febd330e2b8e117fe0815569bd37e366.zip stroke-54587c45febd330e2b8e117fe0815569bd37e366.tar.bz2 |
Fix to make DiscoItems work
This fixes crashes.
Test-information:
No more errors.
-rw-r--r-- | src/com/isode/stroke/elements/DiscoItems.java | 2 | ||||
-rw-r--r-- | src/com/isode/stroke/parser/payloadparsers/DiscoItemsParser.java | 2 |
2 files changed, 2 insertions, 2 deletions
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<Item> items_ = new ArrayList<Item>(); } 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<DiscoItems> { +public class DiscoItemsParser extends GenericPayloadParser<DiscoItems> { public DiscoItemsParser() { super(new DiscoItems()); } |