Revision d59d32c3
Added by Katja Luther over 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/util/ProgressMonitorClientManager.java | ||
---|---|---|
133 | 133 |
// wait for pollInterval, then |
134 | 134 |
// .... retrieve remoting monitor, then |
135 | 135 |
// .... set client monitor info |
136 |
|
|
137 |
IRemotingProgressMonitor previousRemotingMonitor = remotingMonitor; |
|
136 | 138 |
Thread.sleep(pollInterval); |
137 | 139 |
try{ |
138 | 140 |
remotingMonitor = progressMonitorService.getRemotingMonitor(uuid); |
... | ... | |
140 | 142 |
failCount--; |
141 | 143 |
if (failCount > 0){ |
142 | 144 |
continue; |
145 |
remotingMonitor = previousRemotingMonitor; |
|
146 |
}else{ |
|
147 |
throw e; |
|
143 | 148 |
} |
144 | 149 |
|
145 | 150 |
} |
Also available in: Unified diff
avoid NPE when polling for progressmonitor