mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] activation protocol quick fix (IDEA-CR-11401)
This commit is contained in:
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) {
|
||||
|
||||
Reference in New Issue
Block a user