Thaumic Energistics

Thaumic Energistics

14M Downloads

RV2 null pointer exception when connecting to AE system

lehjr opened this issue ยท 1 comments

commented

I know you're still working on this, so before you pull your hair out...

java.lang.NullPointerException: Exception in server tick loop
at appeng.me.GridNode.updateState(GridNode.java:204)
at thaumicenergistics.parts.AbstractAEPartBase.updateStatus(AbstractAEPartBase.java:102)
at thaumicenergistics.parts.AbstractAEPartBase.setPower(AbstractAEPartBase.java:617)
at thaumicenergistics.parts.AbstractAEPartBase.addToWorld(AbstractAEPartBase.java:211)

is caused by this:

src/main/java/thaumicenergistics/grid/AEPartGridBlock.java

@Override
public EnumSet<ForgeDirection> getConnectableSides()
{
    // Ignored.
    return null;
}

should return this instead:
return EnumSet.noneOf(ForgeDirection.class);

AlgorithmX2 says "Don't ever return Null as an EnumSet thats what None is for..."

commented

I'll get that patched up. I've actually spent the better part of two hours getting my dev enviroment setup for the testing, and had JUST got this error. Ty for the tip :D