Remove two unnecessary null checks.

instanceof does an internal null check.

ie) For example see the following:

Context context = null;

if (context instanceof Activity) will evaluate to false