Skip to content

Conversation

dconeybe
Copy link
Contributor

This fixes the following cryptic build error if the "ANDROID_NDK_HOME" environment variable is not set:

java.lang.NullPointerException: Cannot invoke method contains() on null object

…NDROID_NDK_HOME") is not null prior to using it.

This fixes the following cryptic build error if the "ANDROID_NDK_HOME" environment variable is not set:

java.lang.NullPointerException: Cannot invoke method contains() on null object
@google-cla google-cla bot added the cla: yes label Apr 20, 2021
@dconeybe dconeybe requested a review from jonsimantov April 20, 2021 17:20
@dconeybe dconeybe enabled auto-merge (squash) April 20, 2021 17:24
@jonsimantov jonsimantov added the tests-requested: quick Trigger a quick set of integration tests. label Apr 20, 2021
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. and removed tests-requested: quick Trigger a quick set of integration tests. labels Apr 20, 2021
@github-actions
Copy link

github-actions bot commented Apr 20, 2021

✅  Integration test succeeded!

Requested by @jonsimantov on commit 1439749
Last updated: Tue Apr 20 12:53:22 PDT 2021
View integration test results

if (System.getenv("ANDROID_NDK_HOME").contains("r16b") ||
System.getenv("ANDROID_NDK_HOME").contains("r11c")) {
if (System.getenv("ANDROID_NDK_HOME") != null && (
System.getenv("ANDROID_NDK_HOME").contains("r16b") ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you replace these tabs with spaces?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was spaces. Android Studio had formatted it like this. I tweaked it a bit. Let me know if you're okay with it now.

@jonsimantov jonsimantov self-requested a review April 20, 2021 18:42
@github-actions github-actions bot added the tests: succeeded This PR's integration tests succeeded. label Apr 20, 2021
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Apr 20, 2021
@dconeybe dconeybe merged commit 178d90a into main Apr 20, 2021
@firebase firebase locked and limited conversation to collaborators May 21, 2021
@jonsimantov jonsimantov deleted the dconeybe/AndroidAbisGradleNPEFix branch July 12, 2021 22:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes tests: succeeded This PR's integration tests succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants