Buggy code:
} if ( ( urlConnectionStringText ) != null ) { urlConnectionStringText . setText ( getUppercaseNetezzaUrl ( urlConnectionStringText . getText ( ) ) ) ; } if ( ( generalJdbcUrlText ) != null ) { generalJdbcUrlText . setText ( getUppercaseNetezzaUrl ( generalJdbcUrlText . getText ( ) ) ) ; } } } } final ManagerConnection managerConnection = new ManagerConnection ( ) ; if ( isContextMode ( ) ) { selectedContextType = ConnectionContextHelper . getContextTypeForContextMode ( connectionItem . getConnection ( ) ) ; String urlStr = DBConnectionContextUtils . setManagerConnectionValues ( managerConnection , connectionItem , selectedContextType , dbTypeCombo . getItem ( dbTypeCombo . getSelectionIndex ( ) ) , dbTypeCombo . getSelectionIndex ( ) ) ; if ( ( urlStr == null ) || ( isHiveDBConnSelected ( ) ) ) { if ( dbTypeCombo . getText ( ) . equals ( GENERAL_JDBC . getDBDisplayName ( ) ) ) { DatabaseConnection dbConn = ( ( DatabaseConnection ) ( connectionItem . getConnection ( ) ) ) ; ContextType contextType = ConnectionContextHelper . getContextTypeForContextMode ( dbConn ) ; urlStr = ConnectionContextHelper . getOriginalValue ( contextType , dbConn . getURL ( ) ) ; } else { urlStr = getStringConnection ( ) ; } } urlConnectionStringText . setText ( urlStr ) ; } else { String versionStr = dbVersionCombo . getText ( ) ; if ( HIVE . getDisplayName ( ) . equals ( dbTypeCombo . getText ( ) ) ) { EDatabaseVersion4Drivers driver = EDatabaseVersion4Drivers . indexOfByVersionDisplay ( hiveModeCombo . getText ( ) ) ; versionStr = driver . getVersionValue ( ) ; } else { EDatabaseVersion4Drivers version = EDatabaseVersion4Drivers . indexOfByVersionDisplay ( versionStr ) ; if ( version != null ) { versionStr = version . getVersionValue ( ) ; } } managerConnection . setValue ( 0 , dbTypeCombo . getItem ( dbTypeCombo . getSelectionIndex ( ) ) , ( isGeneralJDBC ( ) ? generalJdbcUrlText . getText ( ) : urlConnectionStringText . getText ( ) ) , serverText . getText ( ) , ( isGeneralJDBC ( ) ? generalJdbcUserText . getText ( ) : usernameText . getText ( ) ) , ( isGeneralJDBC ( ) ? generalJdbcPasswordText . getText ( ) : passwordText . getText ( ) ) , sidOrDatabaseText . getText ( ) , portText . getText ( ) , fileField . getText ( ) , datasourceText . getText ( ) , ( isGeneralJDBC ( ) ? jDBCschemaText . getText ( ) : schemaText . getText ( ) ) , additionParamText . getText ( ) , generalJdbcClassNameText . getText ( ) , generalJdbcDriverjarText . getText ( ) , ( enableDbVersion ( ) ? versionStr : null ) , metadataconnection . getOtherParameters ( ) ) ; managerConnection . setDbRootPath ( directoryField . getText ( ) ) ; } managerConnection . setValueProperties ( sqlSyntaxCombo . getItem ( sqlSyntaxCombo . getSelectionIndex ( ) ) , stringQuoteText . getText ( ) , nullCharText . getText ( ) ) ; EDatabaseTypeName dbType = EDatabaseTypeName . getTypeFromDbType ( dbTypeCombo . getItem ( dbTypeCombo . getSelectionIndex ( ) ) ) ; AProgressMonitorDialogWithCancel < Boolean > checkingDialog ; if ( dbType . isUseProvider ( ) ) { final IMetadataConnection metadataConn = ConvertionHelper . convert ( connectionItem . getConnection ( ) , true ) ; checkingDialog = new AProgressMonitorDialogWithCancel < Boolean > ( getShell ( ) ) { @ Override protected Boolean runWithCancel ( IProgressMonitor monitor ) throws Exception { return managerConnection . check ( metadataConn , retProposedSchema ) ; } } ; } else if ( isHiveDBConnSelected ( ) ) { final IMetadataConnection metadataConn = ConvertionHelper . convert ( connectionItem . getConnection ( ) , true ) ; if ( isHiveEmbeddedMode ( ) ) { doHivePreSetup ( ( ( DatabaseConnection ) ( metadataConn . getCurrentConnection ( ) ) ) ) ; } checkingDialog = new AProgressMonitorDialogWithCancel < Boolean > ( getShell ( ) ) { @ Override protected Boolean runWithCancel ( IProgressMonitor monitor ) throws Exception { return managerConnection . checkHiveConnection ( metadataConn ) ; } } ; } else { checkingDialog = new AProgressMonitorDialogWithCancel < Boolean > ( getShell ( ) ) { @ Override protected Boolean runWithCancel ( IProgressMonitor monitor ) throws Exception { return managerConnection . check ( retProposedSchema ) ; } } ; } String executeMessage = Messages . getString ( "DatabaseForm.checkConnection.executeMessage" ) ; <START_BUG> Exception executeException = null ; <END_BUG> try { checkingDialog . run ( executeMessage , null , true , ENDLESS_WAIT_TIME ) ; } catch ( Exception e ) { executeException = e ; } checkButton . setEnabled ( true ) ; if ( checkingDialog . isUserCanncelled ( ) ) { return ; } if ( ( checkingDialog . getExecuteException ( ) ) != null ) { executeException = checkingDialog . getExecuteException ( ) ; } if ( executeException != null ) { if ( executeException instanceof InterruptedException ) { CommonExceptionHandler . process ( executeException , Priority . WARN ) ; return ; } databaseSettingIsValide = false ; } else { databaseSettingIsValide = checkingDialog . getExecuteResult ( ) ; } if ( databaseSettingIsValide ) { if ( ! ( isReadOnly ( ) ) ) { updateStatus ( IStatus . OK , null ) ; } MessageDialog . openInformation ( getShell ( ) , Messages . getString ( "DatabaseForm.checkConnectionTitle" ) , ( ( ( "\"" + ( connectionItem . getProperty ( ) . getDisplayName ( ) ) ) + "\"<seq2seq4repair_space>" ) + ( Messages . getString ( "DatabaseForm.checkIsDone" ) ) ) ) ; if ( ! ( isReadOnly ( ) ) ) { if ( isContextMode ( ) ) { adaptFormToEditable ( ) ; } else { setPropertiesFormEditable ( true ) ; } } String msg = checkDBVersion ( ) ; if ( msg != null ) { updateStatus ( IStatus . WARNING , msg ) ; }

Fix:
Throwable executeException = null ;