Check if class really has annotations
Otherwise, NullPointerException
Bugfix build
abff52217838f8eee01d62eca30da1ecfb1bae78