Browse Source

REPORT-66169 mac双击模板文件时设计器无法唤起

【问题原因】
Arrays.asList返回的列表类型不支持add操作,导致出现异常

【改动思路】
同上
feature/x
Starryi 3 years ago
parent
commit
a619cde823
  1. 2
      designer-realize/src/main/java/com/fr/design/deeplink/DeepLinkManager.java

2
designer-realize/src/main/java/com/fr/design/deeplink/DeepLinkManager.java

@ -138,7 +138,7 @@ public class DeepLinkManager {
public String[] createNewArgs(String[] args) {
String filePath = this.pendingURL;
if (OperatingSystem.isMacos() && StringUtils.isNotEmpty(filePath) && new File(filePath).exists()) {
List<String> argList = Arrays.asList(args);
List<String> argList = new ArrayList<>(Arrays.asList(args));
argList.add(filePath);
markPendingURLConsumed();
return argList.toArray(new String[]{});

Loading…
Cancel
Save