summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMili Verma <mili.verma@isode.com>2012-01-24 17:30:08 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-01-24 17:31:43 (GMT)
commit54587c45febd330e2b8e117fe0815569bd37e366 (patch)
treed44b122358becc956246e1a8122449fc30850cee /src/com/isode
parent0631c281670278ad319d07050d599d2ebbdc67c2 (diff)
downloadstroke-54587c45febd330e2b8e117fe0815569bd37e366.zip
stroke-54587c45febd330e2b8e117fe0815569bd37e366.tar.bz2
Fix to make DiscoItems work
This fixes crashes. Test-information: No more errors.
Diffstat (limited to 'src/com/isode')
-rw-r--r--src/com/isode/stroke/elements/DiscoItems.java2
-rw-r--r--src/com/isode/stroke/parser/payloadparsers/DiscoItemsParser.java2
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());
}