Fixed NPE when concurrencyLevel is 0
This commit is contained in:
parent
2b33ea0c85
commit
0fbe22e2e0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user