mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Change append
to optAppend
for headers and data to avoid NullPointerException
This commit is contained in:
parent
f24ef7dda9
commit
e20c17050e
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ public abstract class AbstractHttpOverXmpp extends IQ {
|
||||||
|
|
||||||
protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder xml) {
|
protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder xml) {
|
||||||
IQChildElementXmlStringBuilder builder = getIQHoxtChildElementBuilder(xml);
|
IQChildElementXmlStringBuilder builder = getIQHoxtChildElementBuilder(xml);
|
||||||
builder.append(headers.toXML());
|
builder.optAppend(headers.toXML());
|
||||||
builder.append(data.toXML());
|
builder.optAppend(data.toXML());
|
||||||
|
|
||||||
return builder;
|
return builder;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue