fake_Bezawada Posted April 25, 2014 Report Posted April 25, 2014 kk...ATB for your interview nen java kadu may be CJ will be helpful for you hmmm ok shinchan bhayyiah ATB
MysorePak Posted April 25, 2014 Author Report Posted April 25, 2014 Bhayya adhi null ravadam ledhu object has values.. so when i debug i found the getmethod ki value set cheyadam ledhu andhuke adhi throw cheshtundhi anukunta.. eppudu set chesa let me run and see still if it throws npe....My bad for not checking the setmethod earlier.. Object null vastundi ? Normal ga raakoodadu. If it null then check object first
fake_Bezawada Posted April 25, 2014 Report Posted April 25, 2014 .euqals() emayna try chesi chudachu kadha bhayyiah object antunav emayna use vuntundhi emo kadha
MysorePak Posted April 25, 2014 Author Report Posted April 25, 2014 agreed && condition checku kuda cheyadam ledhu.. just out of the loop and exception vasthundhi anduke first null check cheyyali So if that condition fails it will not go to next condition it will come out of if loop
porsche911 Posted April 25, 2014 Report Posted April 25, 2014 Bhayya adhi null ravadam ledhu object has values.. so when i debug i found the getmethod ki value set cheyadam ledhu andhuke adhi throw cheshtundhi anukunta.. eppudu set chesa let me run and see still if it throws npe....My bad for not checking the setmethod earlier.. if u still stuck post the entire code man.... might be able to help u out
MysorePak Posted April 25, 2014 Author Report Posted April 25, 2014 Bhayya aa setmethod value set chesthey now i am nto getting any NPE now.. Thanks Everyone for quick response elane suggestion isthun vunte edho okka roju java thoppu avutha .. once again thank everyone ... &D_@@ &D_@@ &D_@@ if u still stuck post the entire code man.... might be able to help u out
CooLgUy4U Posted April 25, 2014 Report Posted April 25, 2014 I think you can't use !=null and !=""...as it int value.....if the method returns a value other than '0' use !=0 ...it should work.
MysorePak Posted April 25, 2014 Author Report Posted April 25, 2014 yeah bhayya andhuke i am using !=0 bec its returning interger, I think you can't use !=null and !=""...as it int value.....if the method returns a value other than '0' use !=0 ...it should work.
porsche911 Posted April 25, 2014 Report Posted April 25, 2014 Bhayya aa setmethod value set chesthey now i am nto getting any NPE now.. Thanks Everyone for quick response elane suggestion isthun vunte edho okka roju java thoppu avutha .. once again thank everyone ... &D_@@ &D_@@ &D_@@ u r welcome mysorepak
Recommended Posts