Skip to content

Commit

Permalink
node registrar npe prism fix
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Oct 6, 2023
1 parent d79d53a commit 07a2dae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;

import jakarta.annotation.PostConstruct;
Expand Down Expand Up @@ -231,7 +232,7 @@ private boolean shouldRenewSecret(NodeType nodeInRepo) {
@NotNull
private NodeType createLocalNodeObject(TaskManagerConfiguration configuration) {
XMLGregorianCalendar currentTime = XmlTypeConverter.createXMLGregorianCalendar();
NodeType node = prismContext.createKnownObjectable(NodeType.class);
NodeType node = new NodeType();
String nodeId = configuration.getNodeId();
node.setNodeIdentifier(nodeId);
node.setName(new PolyStringType(nodeId));
Expand Down

0 comments on commit 07a2dae

Please sign in to comment.