Skip to content

Commit

Permalink
Update DensityProperty.java
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Jan 14, 2024
1 parent 13322ff commit 4fca1e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/main/java/jenkins/views/DensityProperty.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public DensityType getDensity() {

public static DensityType getDensityValueForCurrentUser() {
User user = User.current();

if (user == null) {
return DensityType.DEFAULT;
}

return user.getProperty(DensityProperty.class).getDensity();
}

Expand Down

0 comments on commit 4fca1e8

Please sign in to comment.