[Amibe] Fix a NullPointerException