Cannot call method "getIdentifier" of null