Java: null pointer exception when unboxing Integer?

后端 未结 3 702
悲&欢浪女
悲&欢浪女 2020-12-03 03:09

This code is causing a null pointer exception. I have no idea why:

private void setSiblings(PhylogenyTree node, Color color) throws InvalidCellNumberExceptio         


        
3条回答
  •  日久生厌
    2020-12-03 03:39

    Check for inverse.containsKey(animal), BiMap. The inverse might not have the animal.

提交回复
热议问题