Fixed NPE when concurrencyLevel is 0

This commit is contained in:
Eyck Jentzsch 2018-09-26 21:25:02 +02:00
parent 2b33ea0c85
commit 0fbe22e2e0
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ public class TxStream extends HierNode implements ITxStream<ITxEvent> {
sb.append(scvStream.getId());
resultSet = statement.executeQuery(sb.toString());
while (resultSet.next()) {
if(maxConcurrency==null) maxConcurrency=0;
Object value = resultSet.getObject("concurrencyLevel");
if(value!=null)
maxConcurrency=(Integer) value;