OHakimen / MorePeripherals

Adds new peripherals for CC:Tweaked
MIT License
8 stars 2 forks source link

Java NullpointerException when calling collecthoney() on a beehive interface without beehive connected #25

Closed crazyvinvin closed 1 year ago

crazyvinvin commented 1 year ago

When calling any function on the beehive interface when no beehive is connected, a Java NullpointerException is thrown. It would be better you could do a null check on the hive entity and return false, "beehive is not connected" or something. A null pointer exception is especially confusing when a bee nest is connected instead of a beehive, which I know is no implementation for.

image