Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference

When/where does the error occur?