Questions tagged as 'nullpointerexception'

1
answer

java.lang.NullPointerException error in android application

In this code the mentioned error occurs, pointing to the CarregarTelaPrincipal() method. Why is it occurring? package com.example.usuario.myapp; import android.app.Activity; import android.support.v7.app.AppCompatActivity; import andro...
asked by 22.08.2016 / 20:41
1
answer

NullPointerException when comparing two String arrays in java

I have two String arrays and when I run this: if (prod[i][0].equals(temporaria[j][0]) && prod[i][0]!= null && temporaria[j][0]!= null) I get NullPointerException without even entering the IF loop. I found it strange that...
asked by 08.09.2016 / 23:03
1
answer

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo

I'm running the project on my phone, but it throws the following exception error: java.lang.RuntimeException: Unable to Instantiate Activity ComponentInfo MainActivity: public class MainActivity extends AppCompatActivity { Spinner dropdow...
asked by 19.07.2016 / 04:31
1
answer

Acquisition of data by JTable

I'm trying to get JButtonGuardar(panelInserir) to pass data entered by the user (local time text) from JPanelInserir to JPanelEventos (where is JTable) At the moment, I am not succeeding, if you have any suggestions, I wi...
asked by 21.04.2016 / 02:11
1
answer

Error trying to make a post on a php page through Android Studio

Error 03 - 12 18: 44: 46.688 23858 - 23891 / com.natanielsoares.eceller E / AndroidRuntime: FATAL EXCEPTION: AsyncTask #3 Process: com.natanielsoares.eceller, PID: 23858...
asked by 12.03.2016 / 22:57
1
answer

java.lang.NullPointerException: Attempt to invoke virtual method on a null object reference

I'm trying to insert some values in the database, but it's always giving an exception. My class that enters the bank: private String email; private int codigo; private Button btnOkay; private Button btnCancelar; private EditText codigoConf...
asked by 03.06.2016 / 07:00
2
answers

NullPointerException error when using JSF EL

When I add this line of code to my XHTML page: <f:param name="pedido" value="#{pedido.id}"/> It generates this error: jun 04, 2015 10:59:42 AM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException GRAVE: E...
asked by 04.06.2015 / 16:03
2
answers

NullPointerException on Android

I have a problem listing the photos in the DCIM folder on Android. Does it give the loop error for , casting java.lang.NullPointerException ? What can it be? See the code that takes the information from the folder: public class...
asked by 02.06.2015 / 16:25
1
answer

"FATAL EXCEPTION: main java.lang.NullPointerException" error in android

My code is like this private void makeJsonArryReq() { showProgressDialog(); JsonArrayRequest req = new JsonArrayRequest(Const.URL_JSON_ARRAY, new Response.Listener<JSONArray>() { @Override...
asked by 17.09.2014 / 21:08
1
answer

Crash when implementing tabs and swipeable views

I'm starting in android development and want to put tabs with swipeable views, I followed a AndroidHive because of Google tutorial did not make the slightest meaning to me. The issue is that after doing the swipe my application is crashing,...
asked by 11.07.2014 / 18:51