Skip to content

Commit

Permalink
Issue #7277 - Fixing null return in Request.getServerName() usage
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Erdfelt <[email protected]>
  • Loading branch information
joakime committed Dec 20, 2021
1 parent c467d8f commit b066c8e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ public String getLocalName()
return formatAddrOrHost(localName);
}

return null;
return ""; // not allowed to be null
}

/*
Expand Down Expand Up @@ -1427,7 +1427,7 @@ private String findServerName()
if (name != null)
return formatAddrOrHost(name);

return null;
return ""; // not allowed to be null
}

/*
Expand Down

0 comments on commit b066c8e

Please sign in to comment.