Fixed Null Pointer error for getCurrentFocus