Bug fix from last revision
This commit is contained in:
parent
97d7831446
commit
ad26ac5149
1 changed files with 5 additions and 3 deletions
|
|
@ -43,10 +43,12 @@ public class StreamExistenceManager {
|
||||||
throw new RuntimeException("Stream is not active, instead in status: " + response.streamDescriptionSummary().streamStatus());
|
throw new RuntimeException("Stream is not active, instead in status: " + response.streamDescriptionSummary().streamStatus());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} catch (ResourceNotFoundException e) {
|
|
||||||
return false;
|
|
||||||
} catch (ExecutionException e) {
|
} catch (ExecutionException e) {
|
||||||
|
if (e.getCause() instanceof ResourceNotFoundException) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue