Commit 9f49959
Prevent NullPointerException when getting OS name (#2)
* Prevent NullPointerException when getting OS name
In some environments (ie: with OpenShift), username retrieved by the system is `null`. If this is the case, it should return "unknown" (same as with unknown OS name).1 parent dbec83e commit 9f49959
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
0 commit comments