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

Timob 17016 new #6020

Closed
wants to merge 11 commits into from
Closed

Timob 17016 new #6020

wants to merge 11 commits into from

Conversation

salachi
Copy link
Contributor

@salachi salachi commented Sep 5, 2014

https://jira.appcelerator.org/browse/TIMOB-17016
Null check added to prevent crash.
Based on 3_4_X.

@ingo
Copy link
Contributor

ingo commented Sep 5, 2014

I think this might have too many commits in it.

@hieupham007
Copy link
Contributor

Looks like this PR has another PR's commits as well.

@@ -35,8 +35,10 @@ public void setTab(TiUIActionBarTab tab) {

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

return tab.getContentView();
if (tab != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Under what circumstance would this be null?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is already merged in master and in 3_4_X by #5651.
@hieupham007 - it is null for the zombie fragments that are retained in the fragment manager (and NPE happens without the test), and are recreated (and onCreateView is called) if the activity was destroyed and then recreated. This is fixed in my latest PR which ensures that fragments are reused: #6008

@hieupham007
Copy link
Contributor

This PR should be committing for 3.4.X, but is commiting to master branch.

@salachi salachi closed this Sep 10, 2014
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.

None yet

7 participants