Skip to content

Commit

Permalink
Prevent NPE when reading unset configuration (auto-boxing).
Browse files Browse the repository at this point in the history
  • Loading branch information
guusdk committed Nov 15, 2022
1 parent 2f84eaa commit 8289d68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/nl/goodbytes/xmpp/xep0363/SlotManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ public void initialize( final SlotProvider slotProvider )
private Integer webPort;
private String webContextRoot;

public long getMaxFileSize()
public Long getMaxFileSize()
{
return maxFileSize;
}

public void setMaxFileSize( long maxFileSize )
public void setMaxFileSize( Long maxFileSize )
{
this.maxFileSize = maxFileSize;
}
Expand Down Expand Up @@ -158,7 +158,7 @@ public void setWebPort( final int webPort )
this.webPort = webPort;
}

public int getWebPort()
public Integer getWebPort()
{
return webPort;
}
Expand Down

0 comments on commit 8289d68

Please sign in to comment.