Merge pull request #1121 from Edubits/prevent-NPE

Fix possible NullPointerException
This commit is contained in:
wing328
2015-08-28 16:05:20 +08:00

View File

@@ -128,7 +128,7 @@ public class XmlExampleGenerator {
ArrayProperty p = (ArrayProperty) property;
Property inner = p.getItems();
boolean wrapped = false;
if (property.getXml() != null && property.getXml().getWrapped()) {
if (property.getXml() != null && property.getXml().getWrapped() != null && property.getXml().getWrapped()) {
wrapped = true;
}
if (wrapped) {