[platform] activation protocol quick fix (IDEA-CR-11401)

This commit is contained in:
Vladimir Krivosheev
2016-06-15 12:31:41 +03:00
committed by Roman Shevchenko
parent b9d2c7523e
commit 140f9d2711
@@ -370,7 +370,8 @@ public final class SocketLock {
}
if (StringUtil.startsWith(command, ACTIVATE_COMMAND)) {
List<String> args = StringUtil.split(command.subSequence(ACTIVATE_COMMAND.length(), command.length()).toString(), "\0");
String data = command.subSequence(ACTIVATE_COMMAND.length(), command.length()).toString();
List<String> args = StringUtil.split(data, data.contains("\0") ? "\0" : "\uFFFD");
boolean tokenOK = !args.isEmpty() && myToken.equals(args.get(0));
if (!tokenOK) {