We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc1c6df commit bb7e709Copy full SHA for bb7e709
1 file changed
google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java
@@ -234,11 +234,16 @@ public com.google.api.services.bigquery.model.Job call() {
234
// and get might work.
235
// We can only do this if we randomly generated the ID. Otherwise we might mistakenly
236
// fetch a job created by someone else.
237
+ Job job;
238
try {
- return getJob(jobInfo.getJobId());
239
+ job = getJob(jobInfo.getJobId());
240
} catch (BigQueryException e) {
241
throw createException;
242
}
243
+ if (job == null) {
244
+ throw createException;
245
+ }
246
+ return job;
247
248
249
@Override
0 commit comments