#ExceptionInInitializerError

1 messages · Page 1 of 1 (latest)

lapis fog
#

I have this error on this class, and I don't understand why, it should be working perfectly fine

package gui;

import javafx.scene.image.Image;

public class Conn {
    public static String fichier= "profils/Invite";
    public static boolean estConnecte = false;
    public static Image skinActuelBalle = new Image("file:images/Balle/balle1.png");
    public static Image skinActuelRaquette = new Image("");
    public static void connexion(String file){
        fichier = "profils/"+file;
        estConnecte = true;
    }

    public static void deconnexion(){
        fichier = "profils/Invite";
        estConnecte = false;

    }

    public static String profil(){
        return fichier.substring(8);
    }

    public static int argent(){
        return (int)Integer.valueOf(Fichiers.readLigne(6,fichier).substring(10));
    }

    
}```
warm spindleBOT
#

This post has been reserved for your question.

Hey @lapis fog! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.