Revision 7b7edd17
Added by Andreas Kohlbecker over 6 years ago
src/main/java/eu/etaxonomy/cdm/service/RegistrationWorkingSetService.java | ||
---|---|---|
199 | 199 |
Set<SpecimenOrObservationBase> nextSobs = null; |
200 | 200 |
for(@SuppressWarnings("rawtypes") SpecimenOrObservationBase sob : sobs){ |
201 | 201 |
sob = HibernateProxyHelper.deproxy(sob); |
202 |
if(sob == null){ |
|
203 |
continue; |
|
204 |
} |
|
202 | 205 |
if(DerivedUnit.class.isAssignableFrom(sob.getClass())) { |
203 | 206 |
defaultBeanInitializer.initialize(sob, DERIVEDUNIT_INIT_STRATEGY); |
204 | 207 |
nextSobs = ((DerivedUnit)sob).getOriginals(); |
Also available in: Unified diff
avoiding NPE