GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: npe in createFrom by frankyn · Pull Request #746 · googleapis/java-storage

This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Conversation

@frankyn

@frankyn frankyn commented Mar 5, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

createFrom expects object metadata to be available once uploaded. If response metadata is not available a get object metadata request is made with a null Options parameter which causes an NPE. I tested the change by running IT with multiple uploads to validate failure no longer occurs.

  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)

Fixes #745 ☕️

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Frank Natividad
fix: npe in create-from
96c55bd
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 5, 2021
@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/java-storage API. label Mar 5, 2021
@codecov

codecov Bot commented Mar 5, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Merging #746 (f2950d5) into master (25ea236) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #746      +/-   ##
============================================
+ Coverage     64.60%   64.61%   +0.01%     
  Complexity      625      625              
============================================
  Files            32       32              
  Lines          5311     5313       +2     
  Branches        520      520              
============================================
+ Hits           3431     3433       +2     
  Misses         1718     1718              
  Partials        162      162              
Impacted Files Coverage Δ Complexity Δ
...ava/com/google/cloud/storage/BlobWriteChannel.java 80.19% <100.00%> (+0.40%) 15.00 <1.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 25ea236...411b636. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Frank Natividad added 3 commits March 8, 2021 10:55
Frank Natividad
address NPE issue
2914587
Frank Natividad
revert test it
d0e9982
Frank Natividad
address unit tests
411b636
@frankyn
frankyn marked this pull request as ready for review March 8, 2021 19:44
@frankyn
frankyn requested a review from a team March 8, 2021 19:44
BenWhitehead
BenWhitehead approved these changes Mar 8, 2021
View reviewed changes
@frankyn
frankyn merged commit 9ed9d13 into master Mar 8, 2021
@frankyn
frankyn deleted the create-from-npe branch March 8, 2021 20:30
This was referenced Mar 9, 2021
Bump google-cloud-storage from 1.61.0 to 1.113.13 ConnectionMaster/gcp-ingestion#36
Closed
Bump google-cloud-storage from 1.17.0 to 1.113.14 coffbr01/e-commerce-notifier#46
Closed
Bump google-cloud-storage from 1.61.0 to 1.113.14 ConnectionMaster/gcp-ingestion#40
Closed
Bump google-cloud-storage from 1.113.10 to 1.113.14 navikt/k9-mellomlagring#30
Closed
Bump google-cloud-storage from 1.113.8 to 1.113.14 efge/nuxeo-dependabot#123
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@BenWhitehead BenWhitehead BenWhitehead approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: storage Issues related to the googleapis/java-storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

NPE during upload with 1.113.12

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@frankyn @BenWhitehead
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.