Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7010623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:00:57+00:00 2026-05-27T22:00:57+00:00

above is part of code from myclass. I have class GetPhoto and as shown

  • 0

enter image description here

above is part of code from myclass.
I have class GetPhoto and as shown above code,
I uses GetPhoto class. Here is GetPhoto class code
enter image description here

when I running my project, I am getting null pointer exception from GetPhoto class line 24.
What I thought was

1. move empty intent to GetPhoto class getphoto method
2.then fill this intent by using GetPhoto class object.

I am not sure why intent is still empty even it uses class object’s intent
can anybody tell me what am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:00:58+00:00Added an answer on May 27, 2026 at 10:00 pm

    Because of line number 22

    you are setting the function’s intent variable with a call to getIntent() of Activity. Since this activity is not yet invoked with an intent you do not have one. COmment that code out and it will not give you that error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The above emulator image is just getting the input from the user and showing
I have some JS on my site that should prevent the following code from
Here is the code from my style.php script The objective: User should be able
I've got this piece of code from a Backbone.js tutorial from here . The
First part: call F# from F# Let's say we have the following type defined
I have the following code: Socket clientSocket = null; try { clientSocket = serverSocket.accept();
We have received Java code from a software supplier. It contains a lot of
I have an issue where I'm getting bad access exceptions but only when running
I've been using a piece of jquery code from stack overflow. Here's the link
I have next code which creates a print page with data from datagridview. Font

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.