Commit 186adc9
committed
Return Platform.OS_UNKNOWN in case of null
In some cases the return value of Platform.getOS() can be return null
but its API doc states it return Platform.OS_UNKNOWN is the OS can not
be found.
Fix eclipse-platform/eclipse.platform.ui#36041 parent 2f623a3 commit 186adc9
File tree
2 files changed
+7
-2
lines changed- runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core
- internal/runtime
- runtime
2 files changed
+7
-2
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
475 | 479 | | |
476 | 480 | | |
477 | 481 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
0 commit comments