Questions tagged as 'nullpointerexception'

1
answer

Error: The object reference was not defined as an instance of a C #

I want to make a table in console but all done I execute the program the error appears in the method AlunoLista() , already tried to make changes but I can not get there. static void Main(string[] args) { var cli...
asked by 22.08.2018 / 00:06
1
answer

Unchanging collection by adding strings

I'm starting java programming and am having a problem creating an immutable collection. Below is what I created: package br.com.estudos; import java.util.Collection; public class MinhaColecaoImutavel<String> extends MinhaColecao<St...
asked by 12.07.2018 / 16:53
1
answer

NullPointerException in Java web [closed]

I'm having a problem in a JSP that should insert a project into my work returning me as an error, this is almost identical to an exercise I did earlier, so I do not understand the reason for the error. Error: org.apache.jasper.JasperExcepti...
asked by 04.10.2017 / 21:00
1
answer

Problem with NullPointerException

I have a class like this: public class TileRender { private Map mapa; private TileMap tileMap; private Tile[] tiles; private List<ObjectPointMap> objMap; public TileRender(TileMap tileMap, Map mapa) { this.m...
asked by 27.09.2017 / 16:22
1
answer

Error to popular jtable with database

I have to make a client registration application in JAVA, I'm using eclipse. The problem is in the listarCli() method, because when I comment on this method the error does not appear. The error is: "java.lang.NullPointerException" Acco...
asked by 15.09.2017 / 18:31
1
answer

Attempt to invoke virtual method 'long ContactID.change (Contact)' on a null object reference [closed]

Error: 09-12 14:05:28.662 10410-10410/costamilam.guilherme.contatosempresariais E/AndroidRuntime: FATAL EXCEPTION: main Process: costamilam.guilherme.contatosempresariais, PID: 10410 java.lang.NullPointerException: Attempt to invoke virtual me...
asked by 12.09.2017 / 19:21
1
answer

Unable to start activity ComponentInfo {}: java.lang.NullPointerException

I'm having difficulty finding the solution to this problem, in the code I want to move from the activity "MainActivity" to "PlantaList", but at the time of testing the application on the virtual machine the app closes after this action and the t...
asked by 17.06.2017 / 22:28
2
answers

problem with java.lang.NullPointerException

Well, I'm trying to populate a JTable with database data, but I've always encountered the same exception as java.lang.NullPointerException. It should work as follows: user clicks the refresh button and the program pulls the DB information,...
asked by 27.10.2016 / 17:37
1
answer

Java java.lang.NullPointerException in the constructor of a JPanel

I'm trying to compile a game from memory in java, but it gives the following error: Exception in thread "main" java.lang.NullPointerException at javax.swing.ImageIcon.<init>(ImageIcon.java:217) at memorygame.Game.initSquares(Game.java:...
asked by 09.12.2016 / 02:12
1
answer

NullPointerException error when calling a method

public void addFormaPagamento() { btnAdd.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { boolean isInsertForma = dbApp.insertFormaPagamento( spnForma....
asked by 17.08.2016 / 19:04