Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jan 8, 2022
1 parent 193e320 commit dd5a977
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -29,7 +29,7 @@ public VectorNode(VectorGoal goal, Location location, BlockSource source, BlockE

public VectorNode(VectorNode parent, Vector location, PathInfo info) {
super(parent);
this.store = parent.store != null && parent.store.size() > 0 ? parent.store.clone() : null;
this.store = parent != null && parent.store != null && parent.store.size() > 0 ? parent.store.clone() : null;
this.location = new Vector(location.getBlockX(), location.getBlockY(), location.getBlockZ());
this.info = info;
}
Expand Down

0 comments on commit dd5a977

Please sign in to comment.