Skip to content

Commit a5688d0

Browse files
xumingmingNathan Marz
authored and
Nathan Marz
committed
Fix TransactionalTopologyBuilder NPE
1 parent eacd41c commit a5688d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jvm/backtype/storm/transactional/TransactionalTopologyBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public TransactionalTopologyBuilder(String id, String spoutId, ITransactionalSpo
5252
_id = id;
5353
_spoutId = spoutId;
5454
_spout = spout;
55-
_spoutParallelism = spoutParallelism.intValue();
55+
_spoutParallelism = (spoutParallelism == null) ? null : spoutParallelism.intValue();
5656
}
5757

5858
public TransactionalTopologyBuilder(String id, String spoutId, ITransactionalSpout spout) {

0 commit comments

Comments
 (0)