Skip to content

Commit 7ee4ade

Browse files
committed
[ISSUE-53] Fix NPE in DiffData job on printing final counts
1 parent f0a6360 commit 7ee4ade

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>datastax.astra.migrate</groupId>
55
<artifactId>cassandra-data-migrator</artifactId>
6-
<version>2.10.1</version>
6+
<version>2.10.2</version>
77
<packaging>jar</packaging>
88

99
<properties>

src/main/java/datastax/astra/migrate/AbstractJobSession.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ protected AbstractJobSession(CqlSession sourceSession, CqlSession astraSession,
2424
}
2525

2626
protected AbstractJobSession(CqlSession sourceSession, CqlSession astraSession, SparkConf sc, boolean isJobMigrateRowsFromFile) {
27+
if (sourceSession == null) {
28+
return;
29+
}
2730
this.sourceSession = sourceSession;
2831
this.astraSession = astraSession;
2932

0 commit comments

Comments
 (0)