fix NPE when model's allof with no property

This commit is contained in:
wing328
2015-10-01 23:06:09 +08:00
parent 733e19c113
commit d451d4efb8
20 changed files with 20 additions and 20 deletions

View File

@@ -584,7 +584,7 @@ public class DefaultCodegen {
}
}
// interfaces (intermediate models)
if (allDefinitions != null) {
if (allDefinitions != null && composed.getInterfaces() != null) {
for (RefModel _interface : composed.getInterfaces()) {
final String interfaceRef = toModelName(_interface.getSimpleRef());
final Model interfaceModel = allDefinitions.get(interfaceRef);