Questions tagged as 'nullpointerexception'

1
answer

Treating null pointer exception

I'm getting a json object from the screen in my back end like this: { "pessoa": { "nome": "aa", "nomeSocial": "aa", "tipoPessoa": "F", "nomePai":"", "dataNascimento": "15/06/1983", "nomeMae":...
asked by 30.11.2017 / 12:43
1
answer

NullPointerException when calling method return in another class

I have the following method in the LoginController class @RequestMapping(value = "/usuarioEntidade", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestMethod.POST) public Resposta usuarioEntidade(@RequestBody EntidadesAdministr...
asked by 11.10.2017 / 18:31
1
answer

nullException when setting bank data as parameter

I'm trying to bring the data from the database with this method from my DAO class: public List<Transacoes> listDBPF(){ Connection con = new ConnectionFactory().getConnection(); ResultSet res; List<Transacoes> arrTrans...
asked by 21.05.2017 / 02:17
1
answer

Returning NullPointer to the controller

I have a method in controller that has the function to make a query in my database and after returning only one field of this search, however I am taking nullpointer in the first for that I am using. I would like help in tha...
asked by 01.02.2017 / 19:40
1
answer

NullPointer Exception during registration using the MVC standard

I have a ready-made application that was created procedurally, but for learning purposes I decided to reprogram it using object orientation and the MVC pattern. While registering for a publisher, I'm getting the error NullPointerException...
asked by 25.10.2015 / 02:22
1
answer

NullPointerException error with class composition

I have a class named Users, which has a Sensors-like vector as an attribute protected Sensors sensors[10]; It also has the setDescription method public void setDescription (int ind, String description) { this.sensors[ind].description...
asked by 11.07.2015 / 01:45
1
answer

java.lang.NullPointerException: Attempt to read from field 'java.lang.String

I'm trying to implement a stack (database), the problem is that I'm not able to send my data to the other Activity's in my application, so when I open another activity to check if the data is there, it I want to be able to access the data in my...
asked by 28.03.2016 / 03:06
2
answers

GET Service - System.NullReferenceException: 'Object reference not set to an instance of an object.'

I'm working on creating a Get service in ASP.NET Core, my project contains the following structure: Certiao.Data - Class Library Inside it has Dependences , Models : Sexo.cs and DB_SDO_DEVContext.cs DB_S...
asked by 18.10.2018 / 23:46
1
answer

Object reference not set to an instance of an object. Array

Hi, My problem is in the array following this code: mesh meshCube; string[] file = File.ReadAllLines("object.mind"); foreach (string filetext in file) { if (filetext.Contains("v")) { string ext = filetext.Substring(filetext.Ind...
asked by 24.10.2018 / 00:21
1
answer

Unity Object reference not set to an instance of an object

I'm doing a Quiz on Unity and I'm having an error that I can not solve, I already looked for similar errors but I can not identify, this message appears when I'm running the quiz    NullReferenceException: Object reference not set to an insta...
asked by 15.10.2018 / 06:14