Skip to content

int width=myView.getWidth() on a null object reference #4

Open

Description

@asqa

iam trying to make app like what you done but i got some error
"int width=myView.getWidth()" on a null object reference. How i can fix this?

Activity

  1. ItzNotABug commented on Feb 8, 2018

    @ItzNotABug

    Your myView might be null

  2. asqa commented on Feb 8, 2018

    @asqa
    Author

    i think so..
    so what i should to do?

  3. ItzNotABug commented on Feb 8, 2018

    @ItzNotABug

    check if the View you are passing does exist & is Right for e.g. Typo while typing IDs

  4. asqa commented on Feb 8, 2018

    @asqa
    Author

    ok thanks..let me try first

  5. Kelvao commented on Jul 10, 2018

    @Kelvao

    same problem here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions