Commit deeead8
committed
Fix improper use of sub-monitor in Workspace.write()
SubMonitor.split() should not be called without providing any ticks,
which might happen if the map of to-be-created files is empty. Given
that the called method is private and only called from this method, the
empty check can simply be pulled up.1 parent eca8380 commit deeead8
File tree
1 file changed
+4
-5
lines changed- resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources
1 file changed
+4
-5
lines changedLines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
2829 | 2829 | | |
2830 | 2830 | | |
2831 | 2831 | | |
2832 | | - | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
2833 | 2835 | | |
2834 | 2836 | | |
2835 | 2837 | | |
2836 | 2838 | | |
2837 | 2839 | | |
2838 | | - | |
2839 | | - | |
2840 | | - | |
2841 | 2840 | | |
2842 | 2841 | | |
2843 | 2842 | | |
| |||
0 commit comments