Skip to content

Commit

Permalink
Safeguard against crashes if the PerformanceInfo fails to update (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte authored May 14, 2024
1 parent ab0a9e7 commit 70569ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class PerformanceInfo {
private final OperatingSystemMXBean osBean;
private final MemoryMXBean memoryBean;
float memory;
private String text;
private String text = "";

PerformanceInfo() {
osBean = ManagementFactory.getPlatformMXBean(OperatingSystemMXBean.class);
Expand Down

0 comments on commit 70569ba

Please sign in to comment.