Questions tagged as 'nullpointerexception'

1
answer

Android: NullPointerException in .getIntent (). getExtras ()

I'm in an android class project and I have it almost finished but I need to pass some variables from one activity to another, it gives me NullPointerException and looking for I have not found anything.    Logcat       Caused by: java.lang.Nu...
asked by 11.01.2018 / 19:32
0
answers

NullPointerException when accessing values from a HashMap

I'm trying to access the values of a HashMap<> but the application stops when from a custom adapter I try to take the values I passed to the HashMap , showing this message in the logcat:    E / AndroidRuntime: FATAL EXCEPT...
asked by 11.03.2018 / 07:57
1
answer

my first NullPointerException [duplicated]

As you can guess the title of my question, I'm totally new to Java and programming. Without further ado, Eclipse does not let me compile for this error and tells me that it is on the line: System.out.printf("Digite el %s numero, por favor",...
asked by 10.05.2018 / 04:29
2
answers

NullPointerException when using getSheet ()

I am trying to edit an excel file with apache poi in the following way: public void generarOrdenDePago(Cliente cliente, Periodo periodo, OutputStream outputStream) { try { InputStream in = new FileInputStream("ordenPagoLimpia.xls...
asked by 30.03.2017 / 21:33
1
answer

help shared preferences

I want to save a location with shared preferences as I can not save objects I only save the latitude and longitude, I transform it into string I save them and then I take them out and transform them into double back to load them to th...
asked by 04.07.2018 / 00:57
1
answer

Problem with RecyclerView and List on Android

Good morning. I'm trying to download a series of data from the internet. To do this, through a webservice filled a list of objects. This list is sent to RecycleAdapter to show them in RecyclerView . But in doing so, I get this pr...
asked by 08.04.2017 / 21:26
1
answer

Why do I only get null from getPhotoUrl from a FirebaseUser object?

This is the code where I'm using the object of type FirebaseUser FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser(); Toast.makeText(Login.this,"Bienvenido: "+user.getPhotoUrl().toString(),Toast.LENGTH_LONG).show(); Intent intent =...
asked by 17.12.2018 / 10:40
6
answers

What is the solution to all present, past and future NullPointerException errors?

I have my Java program and I get a NullPointerException and I have seen other questions but they are from people with other programs and it does not work for my program and I want to leave here the 2,000 lines of my program so that you solve the...
asked by 08.01.2017 / 19:54
0
answers

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException; Error in the translation of an OID in the snmp management entity.

What happens is that when I try to translate the information in the form of Response Event to String I get an exception, I think it's in this method, maybe I'm ignoring something, it's a new class for me, so I do not know it very well; this is t...
asked by 25.11.2018 / 06:59
2
answers

Problem with getResource () when getting an image

I have a package called app and within this I have two packages one called res and another graphics, within this last one I have a class with a method, which is responsible for creating an ImageView private ImageView getImageViewFrom(String pa...
asked by 13.09.2018 / 18:35