Questions tagged as 'nullpointerexception'

2
answers

Problems when executing class in Java

When I'm going to invoke the method of this class: package newpackage; import java.util.ArrayList; import javax.swing.JOptionPane; public class Operacoes { /* DESENVOLVIDO BY: "IIJM Team" */ Cliente clientes; ArrayLis...
asked by 22.02.2015 / 19:40
1
answer

Click JPanel does not work

I'm creating an interface for a system and would like it when the user clicked on a JPanel , open another window. The program is compiled normally, but by the time I click on JPanel , it does not open the desired window and exception...
asked by 12.12.2016 / 01:41
2
answers

NullPointer Exception Help

Before the data goes to the bank I have a nullpointer that I've debugged and I can not find where the problem is. Below my classes: package br.com.pokemax.controle; import java.io.Serializable; import java.util.logging.Logger; import...
asked by 04.06.2016 / 17:58
1
answer

imageView.getDrawable () method throws NullPointerException

I wanted to get the drawable from ImageView and convert it to a bitmap. The conversion method I already have and is working fine, but when I request execution, it has the following error: Error Displayed: WhenItakethedirectimagefromtheDra...
asked by 03.03.2016 / 18:54
1
answer

Error trying to set custom ActionBar: java.lang.NullPointerException

I'm trying to customize my ActionBar but whenever I try to emulate the application it closes and returns me the following error in LogCat: 01-07 16:21:57.092 1388-1388/br.com.jeiferson.agenda E/AndroidRuntime: FATAL EXCEPTION: main 01-07 16:21...
asked by 07.01.2016 / 17:31
1
answer

Exception in Thread "Main" java.land.NullPointerException in com.Login.Login.mai (Login.java:18)

Today I tried to make a login system (again), but this time I used a one-dimensional array to save my values. When I ran my program, Eclipse accused an error (null pointer to be more specific), my theory is that assigning a value to array ca...
asked by 09.06.2016 / 23:02
1
answer

NullPointerException on login screen

I'm having this error NullPointerException and I do not know why. I have only a login screen, a dao that takes two parameters, email and password: java.lang.NullPointerException at android.content.ContextWrapper.getPackageName(ContextWrapper.j...
asked by 27.11.2014 / 15:07
1
answer

NullReferenceException in Winforms code

Ithinkit'sabugnotinthecode,butinthecompiler...WhenIeatthiscodearea,theerroralwaysgoestothenextvariable,ormethod.See: Partofthecode:grpBoxMDeck[i]=newSystem.Windows.Forms.GroupBox(){Location=newSystem.Drawing.Point(76,yG),Size=newSystem.Drawing....
asked by 29.04.2018 / 22:35
1
answer

NullPointerException error in running my program

I'm doing an activity with the following statement:    You should implement a digital clock in Java. For this you   should create three classes, namely: Counter, Clock and other class   to test execution (Java application) with the name TestR...
asked by 01.04.2018 / 18:08
1
answer

NullPointerException error while executing java maven project

I created a Maven Java Application project and only created a layout of a screen. When I try to run, it displays the error of NullPointer , and I have not yet implemented any code other than the ones generated by IDE itself. What could...
asked by 07.03.2017 / 22:18