Project

General

Profile

« Previous | Next » 

Revision 7b7edd17

Added by Andreas Kohlbecker over 4 years ago

avoiding NPE

View differences:

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