Skip to content

Commit

Permalink
Merge pull request #98 from BentoBoxWorld/97_NPE_on_reset
Browse files Browse the repository at this point in the history
Add protection around null sections. #97
  • Loading branch information
tastybento authored Oct 19, 2024
2 parents 449f924 + ced7faf commit b3a81c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<!-- Do not change unless you want different name for local builds. -->
<build.number>-LOCAL</build.number>
<!-- This allows to change between versions. -->
<build.version>2.7.2</build.version>
<build.version>2.7.3</build.version>

<sonar.projectKey>BentoBoxWorld_Boxed</sonar.projectKey>
<sonar.organization>bentobox-world</sonar.organization>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ private void setUpIsland(Island island) {
}

private void place(ConfigurationSection section, Location center, Environment env) {
if (section == null) {
return;
}
World world = env.equals(Environment.NORMAL) ? addon.getOverWorld() : addon.getNetherWorld();
if (world == null) {
return;
Expand Down

0 comments on commit b3a81c6

Please sign in to comment.