I have One List in a form, if i click a particular item in that list, it will start download another List(xml file) from server. After downloading, it shows a dialog like "Download completed" with "ok" command.
My issue is, if click on "OK" command, it will not go to Next form(Next list).The dialog disposed and display same form only. Also If i click "OK" commmand it shows exception like,
java.lang.NullPointerException
at dz.a(+1327)
at be.a(+24)
at be.a(+89)
at bf.k(+31)
at bf.h(+26)
at bl.d(+46)
at s.a(+595)
at be.a(+24)
at be.a(+89)
at cf.k(+71)
at cf.e(+20)
at s.b(+80)
at bl.b(+87)
at z.g(+197)
at z.b(+146)
at cw.run(+231)
java.lang.NullPointerException
What is the problem in my coding..plz help me.......Also my coding is below.....
final Dialog dlg2 = new Dialog("Message");
Label lbl2 = new Label("Download");
dlg2.addComponent(lbl2);
Label lbl3 = new Label("Completed");
dlg2.addComponent(lbl3);
Command cmdok1=new Command("OK");
dlg2.addCommand(cmdok1);
Command cmd1 = dlg2.showDialog();
if(cmd1==cmdok1)
{
try {
dlg2.dispose();
mite.show(); //mite is my next form(next list)
} catch (Exception e) {
mite.show(); // I tried to show next form, but it is also not working.
}

Reply With Quote



