From 4a2a4b990d59311e4d9b35be6725d75c3d5aadcf Mon Sep 17 00:00:00 2001 From: levy Date: Fri, 6 Nov 2020 15:11:56 +0800 Subject: [PATCH] fix --- .../java/com/xiaomi/infra/pegasus/security/Negotiation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/xiaomi/infra/pegasus/security/Negotiation.java b/src/main/java/com/xiaomi/infra/pegasus/security/Negotiation.java index 9440c2e5..8ae185ea 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/security/Negotiation.java +++ b/src/main/java/com/xiaomi/infra/pegasus/security/Negotiation.java @@ -106,7 +106,7 @@ public void onRecvMechanisms(negotiation_response response) throws Exception { String[] matchMechanisms = new String[1]; matchMechanisms[0] = getMatchMechanism(new String(response.msg.data, Charset.defaultCharset())); - if (matchMechanisms[0] == "") { + if (matchMechanisms[0].equals("")) { throw new Exception("No matching mechanism was found"); }