Skip to content

Commit

Permalink
spacewalk-java: Document when User can be null for getCreator()
Browse files Browse the repository at this point in the history
  • Loading branch information
SchoolGuy committed May 24, 2023
1 parent c016fdc commit 33b6522
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions java/code/src/com/redhat/rhn/domain/server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,10 @@ public void setSecret(String secretIn) {
}

/**
* This may be null in some cases:
* - If a server was bootstrapped with Salt and the key was accepted manually via "salt-key".
* - If a server was created by a user and the user was later on deleted.
*
* @return Returns the creator.
*/
public User getCreator() {
Expand Down

0 comments on commit 33b6522

Please sign in to comment.