SirSengir/BuildCraft — pull request #508 by nevercast (2012-12-15 04:36:04+00:00)
Title: Fix some NPEs on TileEngine when it has not be initialized

When I added a Redstone Engine to a running pump I got this error.
It is caused by the engine instant not existing at the time of call, due to the engine not being fully initialized.

Stacktrace:
at buildcraft.energy.TileEngine.fill(TileEngine.java:447)
at buildcraft.factory.TilePump.g(TilePump.java:134)

The real error is TileEngine, not the pump. It didn't check for engine being null in a few spots that I saw with quick glance.