Could not handle null thisInstance