Questions tagged as 'nullpointerexception'

2
answers

NullPointerException while deleting log

Good morning. I have a problem that I can not solve. I'm developing my first Android app and I'm going to stumble over this error, SQLite can not work with Context. I did some research and found no solution. I hope some charitable soul helps me...
asked by 12.07.2016 / 15:35
1
answer

Target Unreachable, 'reply' returned null - SelectOneRadio

I can not get the value of my selectOneRadio , it comes as null : <p:dataTable id="exibePerguntas" var="questao" paginator="true" rowsPerPageTemplate="2,3,5,10,12" paginatorPosition="bottom" value...
asked by 30.10.2015 / 15:43
1
answer

NullPointer Exception Error When Bringing Fragment Data

I'm having a NullPointerException error while trying to return the data from a Fragment. The NPE error is fine in this line: String comentarioFoto = fragment_obj.campoComentarioFoto.getText().toString(); See my activity code: public class...
asked by 23.06.2015 / 16:26
1
answer

How to solve the error Caused by: java.lang.NullPointerException in getSessionFactory ()

This error message is appearing to me Herearethelinesthatgaveerror:publicclassHibernateUtil{privatestaticfinalSessionFactorysessionFactory=buildSessionFactory();privatestaticSessionFactorybuildSessionFactory(){try{Configurationconfiguration=n...
asked by 14.04.2015 / 17:30
1
answer

Error handling exceptions - "Object reference not set to an instance of an object"

public String IdentificarAcessoDAL(FuncionarioDTO acesso) { try { conexao.cmd.Connection = conexao.conexao; string recuperar = "SELECT CARGO.NOME_CARGO FROM LOGIN INNER JOIN FUNCIONARIO ON FUNCIONARIO.C...
asked by 21.10.2018 / 07:51
0
answers

NullPointer Exception when using the @Before and @After notations in Selenium

When using the ratings @Before and @After , it is giving nullpointer error. Does anyone know what to say? Follow the code: import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; impo...
asked by 26.05.2018 / 22:34
1
answer

NullPointerException while executing ListView.setAdapter (Android)

I'm implementing an application where I need to display a list of Dogs (already registered in the DB) and allow clicking on an item in the list to display a new activy to edit the data. The problem is that I'm getting a NullPointerException w...
asked by 03.11.2017 / 20:40
0
answers

javax.faces.el.EvaluationException: java.lang.NullPointerException

Galera, you are my last salvation. I get this error javax.faces.el.EvaluationException: java.lang.NullPointerException when I try to register a client. My development experience is small, I'm developing this small system as a college work...
asked by 27.10.2017 / 02:10
1
answer

NullPointerException on method return

I am making a method to fetch the logged-in user from the database. I'm having a NullPointerException in return of this method @RequestMapping(value = "/usuarioLogado", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestM...
asked by 18.10.2017 / 16:58
0
answers

How to start an array in another class - java

I'm trying to implement the depth first algorithm to solve a labyrinth, like the one below, where the starting position is S and the output is E _SW______\n _WWW_W_WW\n _____W__E\n In the MazeReader class I read the .txt file for the Maze a...
asked by 12.06.2017 / 17:18