Skip to content

Commit

Permalink
Spark: Add null check for catalog in SparkTestBase (apache#1529)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbendick authored Sep 30, 2020
1 parent 680798a commit d8a6f7f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ public static void startMetastoreAndSpark() {

@AfterClass
public static void stopMetastoreAndSpark() {
catalog.close();
if (catalog != null) {
catalog.close();
}
SparkTestBase.catalog = null;
metastore.stop();
SparkTestBase.metastore = null;
Expand Down

0 comments on commit d8a6f7f

Please sign in to comment.