Project

General

Profile

« Previous | Next » 

Revision bd04ba61

Added by Katja Luther over 4 years ago

fix NPE during exception handling

View differences:

eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/ApplicationWorkbenchAdvisor.java
120 120
	            }
121 121
		    	previousT = t;
122 122

  
123
                if (t != null && ( t instanceof NoHttpResponseException || t.getCause() instanceof CdmAuthenticationException || t.getMessage().contains("status code = 403"))){
123
                if (t != null && ( t instanceof NoHttpResponseException || (t.getCause() != null && t.getCause() instanceof CdmAuthenticationException) || (t.getMessage() != null && t.getMessage().contains("status code = 403")))){
124 124
                    MessagingUtils.informationDialog("Access denied", MessagingUtils.ACCESS_DENIED);
125 125

  
126 126
                }else

Also available in: Unified diff