Skip to content

Commit

Permalink
fix: nullptrException
Browse files Browse the repository at this point in the history
  • Loading branch information
JWJUN233233 committed May 3, 2024
1 parent 27410bb commit 4eaba07
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public void onBlockPlace(BlockPlaceEvent e) {
private void removeNetwork(Location location) {
NodeDefinition definition = NetworkStorage.getAllNetworkObjects().get(location);
if (definition == null) return;
if (definition.getNode() == null) return;
NetworkStorage.removeNode(location);

if (definition.getNode().getNodeType() == NodeType.CONTROLLER) {
Expand Down

0 comments on commit 4eaba07

Please sign in to comment.