Exemple

public static void main( String[] args ) {
Object objet;
//....
if (objet.getResult() != null) {
System.out.println(objet.getResult());
}
}

Solution
    Utilisez une variable pour stocker le résultat de l'appel de méthode.

public static void main( String[] args ) {
Object objet;
Object resultat = objet.getResult();
if (resultat != null) {
System.out.println(resultat);
}
}