Skip to content

Commit

Permalink
test: Fix distracting NPE from ExampleFirestoreWriteReadTest.tearDown…
Browse files Browse the repository at this point in the history
…() (#1063)
  • Loading branch information
dconeybe committed Oct 12, 2022
1 parent 17c2947 commit 20e6344
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ public void setUpStream() {

@AfterClass
public static void tearDown() {
deleteCollection(firestore.collection(collectionId), 1);
if (firestore != null && collectionId != null) {
deleteCollection(firestore.collection(collectionId), 1);
}
}

@Test
Expand Down

0 comments on commit 20e6344

Please sign in to comment.