Skip to content

Commit

Permalink
fix: Fixing NPE bug by adding to if clause (#3290)
Browse files Browse the repository at this point in the history
* fix: fixing bug by adding to if clause

* fix: fixing formatting

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
nick-redfearn and gcf-owl-bot[bot] committed May 8, 2024
1 parent 6e281d5 commit 127cff9
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -427,7 +427,9 @@ public com.google.api.services.bigquery.model.Job call() {
}

if (!idRandom) {
if (createException instanceof BigQueryException && createException.getCause() != null) {
if (createException instanceof BigQueryException
&& createException.getCause() != null
&& createException.getCause().getMessage() != null) {

/*GoogleJsonResponseException createExceptionCause =
(GoogleJsonResponseException) createException.getCause();*/
Expand Down

0 comments on commit 127cff9

Please sign in to comment.