You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a NullPointerException when calling the following method:
com.eclipsesource.restfuse.internal.ResponseImpl#getType
public MediaType getType() {
String type = clientResponse.getType().toString();
return MediaType.fromString( type );
}
I think it can be fixed by returning a null in this case
public MediaType getType() {
if (clientResponse.getType()==null)
return null;
String type = clientResponse.getType().toString();
return MediaType.fromString( type );
}
The text was updated successfully, but these errors were encountered:
I'm getting a NullPointerException when calling the following method:
com.eclipsesource.restfuse.internal.ResponseImpl#getType
public MediaType getType() {
String type = clientResponse.getType().toString();
return MediaType.fromString( type );
}
I think it can be fixed by returning a null in this case
public MediaType getType() {
if (clientResponse.getType()==null)
return null;
String type = clientResponse.getType().toString();
return MediaType.fromString( type );
}
The text was updated successfully, but these errors were encountered: