Skip to content

Commit

Permalink
GEODE-6557:Handling a possible null situation.
Browse files Browse the repository at this point in the history
	* There is a possibility that type can be null, which is handled in the return statement.
	* Similar checks were placed in the logger trace statement.
  • Loading branch information
nabarunnag committed Apr 16, 2019
1 parent 016cf13 commit 8ff0939
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public ServerSerializableObjectHttpMessageConverter() {
@Override
protected boolean supports(final Class<?> type) {
if (logger.isTraceEnabled()) {
logger.trace(String.format("%1$s.supports(%2$s)", getClass().getName(), type.getName()),
logger.trace(String.format("%1$s.supports(%2$s)", getClass().getName(),
type == null ? null : type.getName()),
new Throwable());
}

Expand Down

0 comments on commit 8ff0939

Please sign in to comment.