Project

General

Profile

« Previous | Next » 

Revision a0f770fe

Added by Andreas Müller over 1 year ago

cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStore.java
349 349
            return mockCdmEntitySessionManager;
350 350
        }
351 351
    }
352
    public static  ICdmEntitySessionManager getCurrentSessionManager() {
352
    public static ICdmEntitySessionManager getCurrentSessionManager() {
353 353
        return getCurrentSessionManager(false);
354 354
    }
355 355

  
356 356
    public static  ICdmEntitySessionManager getCurrentSessionManager(boolean connecting) {
357
        if (getDefault(connecting) != null) {
358
            return getDefault(connecting).getSessionManager();
357
        CdmStore cdmStore = getDefault(connecting);
358
        if (cdmStore != null) {
359
            return cdmStore.getSessionManager();
359 360
        }
360 361
        return null;
361 362
    }

Also available in: Unified diff