Skip to content

Commit 80ee56f

Browse files
authored
Merge pull request #54 from abinaya21/fix-npe-diff-job
[ISSUE-53] Fix NPE in DiffData job on printing final counts
2 parents 47f5846 + d6b640f commit 80ee56f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-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>3.0.0</version>
6+
<version>3.0.1</version>
77
<packaging>jar</packaging>
88

99
<properties>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ protected AbstractJobSession(CqlSession sourceSession, CqlSession astraSession,
2525

2626
protected AbstractJobSession(CqlSession sourceSession, CqlSession astraSession, SparkConf sc, boolean isJobMigrateRowsFromFile) {
2727
super(sc);
28+
29+
if (sourceSession == null) {
30+
return;
31+
}
32+
2833
this.sourceSession = sourceSession;
2934
this.astraSession = astraSession;
3035

0 commit comments

Comments
 (0)