When i compile these codes below to make a record in my database i have an error saying Null point exception. i wish someone here could help me out please
Au is the Object from the domain class
IAut is the interface to link the client to the server
public static IAut IAut;
Aut Au;
public void saveAut() {
try {
Au = new Aut(txtDesignationAut.getText(),Double.parseDouble(txtPrixAut.getText()));
if (Au != null){
System.out.println("Au non null"+Au.toString());
// Au is not null but when i put this code below i get the error
It doesn't look like Au itself is null, but maybe save() is trying to access one of its fields that just happens to be null. What does the stack trace look like ?
× Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
× Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
Jean Pierre Charles
Un émulateur de Chip-8 en D
Writing a faster youtube downloader
Le cours en Java le plus géniale de la terre : Super cours de Cysboy
PXL Le retro gaming facile Thread sur le forum: https://openclassrooms.com/forum/sujet/retro-pxl