We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac4ec29 + 41a6aee commit fb9f719Copy full SHA for fb9f719
modules/swagger-models/src/main/java/io/swagger/models/properties/RefProperty.java
@@ -58,12 +58,20 @@ public void setType(String type) {
58
59
@JsonIgnore
60
public RefFormat getRefFormat() {
61
- return this.genericRef.getFormat();
+ if (genericRef != null) {
62
+ return this.genericRef.getFormat();
63
+ } else {
64
+ return null;
65
+ }
66
}
67
68
69
public String getSimpleRef() {
- return genericRef.getSimpleRef();
70
71
+ return this.genericRef.getSimpleRef();
72
73
74
75
76
77
@Override
@@ -92,4 +100,4 @@ public boolean equals(Object obj) {
92
100
93
101
return true;
94
102
95
-}
103
+}
0 commit comments