Skip to content

Commit

Permalink
payara#4657 GlassFishProperties throws NPE if the Properties is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhanu Akula authored and Bhanu Akula committed Sep 27, 2020
1 parent f261c15 commit 3004619
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ public GlassFishProperties() {
* for the plugged in {@link GlassFishRuntime} (if any)
*
* @param props Properties object which will back this GlassFishProperties object.
* @throws IllegalArgumentException if props is null
*/
public GlassFishProperties(Properties props) {
if(props == null){
throw new IllegalArgumentException("Properties object is null");
}
gfProperties = props;
}

Expand Down

0 comments on commit 3004619

Please sign in to comment.