fix NullPointerException when requirement was null