Merge "Check 'number' against both empty and null string for handleCdmaCallWaiting" into oc-dr1-dev
diff --git a/src/com/android/services/telephony/PstnIncomingCallNotifier.java b/src/com/android/services/telephony/PstnIncomingCallNotifier.java
index 72b659e..381c131 100644
--- a/src/com/android/services/telephony/PstnIncomingCallNotifier.java
+++ b/src/com/android/services/telephony/PstnIncomingCallNotifier.java
@@ -139,7 +139,7 @@
Connection connection = call.getLatestConnection();
if (connection != null) {
String number = connection.getAddress();
- if (number != null && Objects.equals(number, ccwi.number)) {
+ if (!TextUtils.isEmpty(number) && Objects.equals(number, ccwi.number)) {
sendIncomingCallIntent(connection);
}
}