Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve null pointer exception on detail screen #1591

Merged
merged 2 commits into from
Sep 17, 2019
Merged

Resolve null pointer exception on detail screen #1591

merged 2 commits into from
Sep 17, 2019

Conversation

paynemiller92
Copy link
Contributor

Overview of Changes (TL;DR)

  1. Perform null checking on entry detail page
  2. Break up large methods that perform multiple tasks into smaller, single responsibility methods

Related Issues

#940

Details

I wasn't able to replicate the exact crash (if there is one, the info on that ticket is a little skimpy!) However, I did several Android Studio Linter warnings, NullPointerExceptions being a few of them. I removed all the Linter warnings from the GitHuntEntryDetailActivity class and I cleaned up the code for readability (the whole point of a sample app is to quickly educate developers on how to use the tool, cleaner code makes this easier!)

#940 references a NullPointerException within the Java sample app that happens when child objects of the EntryDetailQuery response are not null checked and properties of these objects are accessed. A switch statement linter error was also removed as the switch statement only contained one branch alongside a default statement
Just doing some tidying up while I am in this class. The method intializeUserInterface() is now where all the loading of the View properties takes place, and I also created a method for setting the Repository data into the user interface as well.
@apollo-cla
Copy link

@paynemiller92: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

@paynemiller92
Copy link
Contributor Author

@paynemiller92: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

The agreement has been signed 🖊 !

@paynemiller92
Copy link
Contributor Author

@martinbonnin who can merge this? Is there a merge schedule? I want to tackle some more PRs 😄

@martinbonnin
Copy link
Contributor

I don't have merge rights actually. You'll have to wait for one of the maintainers to look at your pull request.

@digitalbuddha digitalbuddha merged commit 292df97 into apollographql:master Sep 17, 2019
@digitalbuddha
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants