NPE in Projects plugin
@@ -216,6 +216,7 @@ public class ProjectsGuiPlugin {
String environmentName = auditEvent.getName();
if (StringUtils.isNotEmpty(environmentName)) {
environment = config.findEnvironment(environmentName);
+ if (environment != null) {
// See that the project belongs to the environment
//
if (projectName.equals(environment.getProjectName())) {
@@ -230,6 +231,7 @@ public class ProjectsGuiPlugin {
}
}
}
+ }
} catch (Exception e) {
LogChannel.UI.logError("Error reading the last used environment from the audit logs", e);
}
