Hirdetés

Keresés

Új hozzászólás Aktív témák

  • Drizzt
    nagyúr

    NullPointerException akkor van, ha idézem:

    Thrown when an application attempts to use null in a case where an object is required. These include:

    Calling the instance method of a null object.
    Accessing or modifying the field of a null object.
    Taking the length of null as if it were an array.
    Accessing or modifying the slots of null as if it were an array.
    Throwing null as if it were a Throwable value.

    catchnél tedd be, hogy System.out.println(ex.getLocalizedMessage()); és akkor hátha jobban látod minél következik be...

    Koszi. Nalam az a helyzet, hogz van egz osztalz, amiben van egz masik osztaly, ami a threadbol szarmazik. Ebben nem tudom elerni a tartalmazo osztaly semelzik valtozojat sem, nah, ezt nem ertem miert van, illetve hogz lehetne kikuszobolni. Tehat ez a threadbol szarmazo osztalz a masik osztalzon belul van definialva.

Új hozzászólás Aktív témák