work around NPE

Not sure if the name being null is ok, but this is likely better code.
This commit is contained in:
Eric House 2020-06-20 14:43:21 -07:00
parent fe7e85c93d
commit 2b0dcbbd17

View file

@ -27,6 +27,7 @@ import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.text.format.DateUtils;
import android.view.View;
import android.widget.Button;
@ -74,7 +75,7 @@ public class BTInviteDelegate extends InviteDelegate {
pairs = new ArrayList<>();
} else {
for ( TwoStringPair pair : pairs ) {
alreadyHave = pair.str2.equals(devName);
alreadyHave = TextUtils.equals(pair.str2, devName);
if ( alreadyHave ) {
break;
}