Fix npe in exception mapper pt 2
@@ -36,7 +36,7 @@ import io.apicurio.registry.client.exception.VersionNotFoundException;
public class ExceptionMapper {
public static RestClientException map(RestClientException ex) throws RestClientException {
- if (ex == null || ex.getError() == null) {
+ if (ex == null || ex.getError() == null || ex.getError().getName() == null) {
return ex;
}
switch (ex.getError().getName()) {
