Skip to content

Commit

Permalink
RootCause handles null case
Browse files Browse the repository at this point in the history
  • Loading branch information
spacecowboy committed Nov 8, 2016
1 parent 675a4eb commit ccfe0e4
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -262,9 +262,7 @@ BackupOutcome doIncrementalBackupOrFallbackToFull( String sourceHostNameOrIp, in
}
catch ( RuntimeException e )
{
Throwable cause = e.getCause() == null ? e : rootCause( e );

if ( cause instanceof UpgradeNotAllowedByConfigurationException )
if ( rootCause( e ) instanceof UpgradeNotAllowedByConfigurationException )
{
throw new UnexpectedStoreVersionException( "Failed to perform backup because existing backup is from " +
"a different version.", e );
Expand Down

0 comments on commit ccfe0e4

Please sign in to comment.