Hi,
I have been trying to play around with ksoap2 for the
last few days.
I think I have found a bug
Class: org.ksoap2.seriailzation.SoapSerializationEnvelope
public void writeObjectBody(XmlSerializer writer,
KvmSerializable obj) throws IOException {
0 PropertyInfo info = new PropertyInfo();
int cnt = obj.getPropertyCount();
.
.
.
1 String nsp = info.namespace;
2 if (nsp == null)
3 nsp = info.namespace;
4 writer.startTag(nsp, info.name);
writeProperty(writer, obj.getProperty(i),
info);
6 writer.endTag(nsp, info.name);
}
}
}
1. Lines 1,2,3 do not make any sense to me.
2. info is Instantiated using the no-arguments
constructor for PropertyInfo and we have null values
being passed as arguments in lines 4 and 6.
Logged In: YES
user_id=1282699
If you properly populate the namespace, name and type
attributes in your kvmserializable object you will not run
into the null pointer.