Fix NullPointerException when checking if its a sinkDevice.
Fix NullPointerException when checking if its a sinkDevice.

xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base