Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Aug 26, 2016
1 parent 55c4ecb commit 1aed4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/refinedstorage/tile/TileNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public boolean canConduct(EnumFacing direction) {

@Override
public INetworkMaster getNetwork() {
return !worldObj.isRemote ? RefinedStorageAPI.getNetwork(this) : null;
return (worldObj != null && !worldObj.isRemote) ? RefinedStorageAPI.getNetwork(this) : null;
}

@Override
Expand Down

0 comments on commit 1aed4b1

Please sign in to comment.