Skip to content

Commit 3c1e906

Browse files
committed
fix mapper for NPE in array
1 parent d5f7143 commit 3c1e906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/uber/cadence/internal/compatibility/proto/DecisionMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class DecisionMapper {
5555

5656
static List<Decision> decisionArray(List<com.uber.cadence.Decision> t) {
5757
if (t == null) {
58-
return null;
58+
return new ArrayList<>();
5959
}
6060

6161
List<Decision> v = new ArrayList<>();

0 commit comments

Comments
 (0)