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.
1 parent 0bf4a75 commit d046a08Copy full SHA for d046a08
README.md
@@ -131,7 +131,11 @@ class ComplexPojoException extends Exception {
131
132
@FeignExceptionConstructor
133
public ComplexPojoException(GithubExceptionResponse body) {
134
-
+ if (body != null) {
135
+ // extract data
136
+ } else {
137
+ // fallback code
138
+ }
139
}
140
141
//The pojo can then be anything you'd like provided the decoder can manage it
@@ -141,3 +145,6 @@ class GithubExceptionResponse {
145
public List<String> urlsForHelp;
142
146
143
147
```
148
+
149
+It's worth noting that at setup/startup time, the generators are checked with a null value of the body.
150
+If you don't do the null-checker, you'll get an NPE and startup will fail.
0 commit comments