Commit fbc17d42 authored by fallenstardust's avatar fallenstardust

修复快捷加房闪退

parents 2a493a29 63c97e76
......@@ -85,7 +85,13 @@ public class ServiceDuelAssistant extends Service {
@Override
public void onPrimaryClipChanged() {
ClipData clipData = cm.getPrimaryClip();
final String ss = clipData.getItemAt(0).getText().toString();
CharSequence cs = clipData.getItemAt(0).getText();
final String ss;
if(cs != null){
ss = cs.toString();
}else{
ss = "";
}
/*final int ssi=ss.indexOf("卡查");
if (ssi != -1) {
cxCard(ss, ssi);
......@@ -102,7 +108,6 @@ public class ServiceDuelAssistant extends Service {
if (start != -1) {
joinRoom(ss, start);
}
//}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment