From 986390babc7a014160ea228ebe0ee9371ee8d021 Mon Sep 17 00:00:00 2001 From: SpaceToad Date: Sun, 11 May 2014 14:31:38 +0200 Subject: [PATCH] fixed NPE in Box.extendToEncompass, close #1783 --- common/buildcraft/core/Box.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/buildcraft/core/Box.java b/common/buildcraft/core/Box.java index 3688d36e..04d82cf8 100644 --- a/common/buildcraft/core/Box.java +++ b/common/buildcraft/core/Box.java @@ -289,7 +289,7 @@ public class Box implements IBox { } public Box extendToEncompass (Box toBeContained) { - if (!toBeContained.initialized) { + if (toBeContained == null || !toBeContained.initialized) { return this; }