Skip to content

Commit 84ee285

Browse files
committed
Don't output a bad session ID.
1 parent 60d1cd5 commit 84ee285

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

analytics/integration_test/src/integration_test.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ TEST_F(FirebaseAnalyticsTest, TestGetSessionID) {
137137

138138
EXPECT_TRUE(future.result() != nullptr);
139139
EXPECT_NE(*future.result(), static_cast<int64_t>(0L));
140-
LogInfo("Got session ID: %" PRId64, *future.result());
140+
if (future.result() != nullptr) {
141+
LogInfo("Got session ID: %" PRId64, *future.result());
142+
}
141143
}
142144

143145
TEST_F(FirebaseAnalyticsTest, TestSetConsent) {

0 commit comments

Comments
 (0)