mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-19 12:15:28 +00:00
bug6129: added null check in resetAIAgentCredentials()
This commit is contained in:
+4
-2
@@ -4156,7 +4156,7 @@ public class SailingServiceWriteImpl extends SailingServiceImpl implements Saili
|
||||
throw new IllegalStateException("Credentials could not be parsed");
|
||||
}
|
||||
if (parsedCredentials != null) {
|
||||
aiAgent.setCredentials(parsedCredentials);
|
||||
aiAgent.setCredentials(parsedCredentials);
|
||||
}
|
||||
} else {
|
||||
throw new IllegalStateException("Blank credentials received");
|
||||
@@ -4168,7 +4168,9 @@ public class SailingServiceWriteImpl extends SailingServiceImpl implements Saili
|
||||
public void resetAIAgentCredentials() {
|
||||
checkAIAgentConfigPermission();
|
||||
final AIAgent aiAgent = getAIAgent();
|
||||
aiAgent.setCredentials(null);
|
||||
if (aiAgent != null) {
|
||||
aiAgent.setCredentials(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user