Skip to content

Commit b2e2cb7

Browse files
author
Mike Burke
committed
Changes in getLockScreenStatus Method for Checking Null Pointer
Signed-off-by: Mike Burke <mike@livioconnect.com>
1 parent b019127 commit b2e2cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdl_android_lib/src/com/smartdevicelink/proxy/LockScreenManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public synchronized OnLockScreenStatus getLockObj(/*int SessionID*/)
5252
private synchronized LockScreenStatus getLockScreenStatus()
5353
{
5454

55-
if ( hmiLevel.equals(HMILevel.HMI_NONE) )
55+
if ( (hmiLevel == null) || (hmiLevel.equals(HMILevel.HMI_NONE)) )
5656
{
5757
return LockScreenStatus.OFF;
5858
}

0 commit comments

Comments
 (0)