Browse Source

处理NPE

feature/big-screen
Maksim 5 years ago
parent
commit
34713079a6
  1. 2
      designer-base/src/main/java/com/fr/design/EnvChangeEntrance.java

2
designer-base/src/main/java/com/fr/design/EnvChangeEntrance.java

@ -249,7 +249,7 @@ public class EnvChangeEntrance {
WorkspaceAPI workspaceAPI = (WorkspaceAPI) clazz.getAnnotation(WorkspaceAPI.class); WorkspaceAPI workspaceAPI = (WorkspaceAPI) clazz.getAnnotation(WorkspaceAPI.class);
String descriptionOfCN = InterProviderFactory.getProvider().getLocText(workspaceAPI.description()); String descriptionOfCN = InterProviderFactory.getProvider().getLocText(workspaceAPI.description());
textBuilder.append(descriptionOfCN).append("\n"); textBuilder.append(descriptionOfCN).append("\n");
}catch (Exception e){ }catch (NullPointerException e){
FineLoggerFactory.getLogger().info("workspace service {} get annotation failed", clazz); FineLoggerFactory.getLogger().info("workspace service {} get annotation failed", clazz);
} }
} }

Loading…
Cancel
Save