Complete Error Message



Hello Thomas,

thanks for your quick reply!
Bevor talking about the real problem:
There is one error in the line:
....
add("test.xml");
....
Of course, it should be: add(parse("test.xml");
Sorry for that.


Ok, here is the complete error message of the part of interest:

java.lang.NullPointerException

at
file_dialog_test.FileDialogTestMain.<init>(FileDialogTestMain.java:26)

at
file_dialog_test.FileDialogTestMain.main(FileDialogTestMain.java:39)

Exception in thread "main"

Line 26 is the line: while (!(frame instanceof Frame)) { frame =
frame.getParent(); }
Line 39 is: new FrameLauncher("Test", new FileDialogTestMain(),640,
480);

However, the problem, as I see it, is that in line 25 (Container frame
= this;) the container variable is set to "null" for some reason. This
leads to the Exceptions, I guess.
In the examples, "this" revers to a Thinlet variable (Thinlet itselfs
derrives from the container class which is the reason why Container
frame = this should work), in my case, I extend Thinlet, but my "this"
seems no to be accepted...
Thanks for your help,

Hank

.



Relevant Pages

  • Re: "Object reference not set to an instance of an object." error at postback
    ... My guess would be that your problem is located with your binding ... container that you mentioned towards the end of your post. ... Object reference not set to an instance of an object. ... The error message appears immediately ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Blocks and Their Use
    ... The big fat error message you get when running your test cases and the ... assert that fires off, or worse yet when your users get that same, big ... fat error message when running your program and the assert fires off, ... real problem. ...
    (comp.lang.c)
  • Re: CSVDE Import Problem
    ... not the original but with the same error message (I ... container for upgraded computer ... "CN=RAS and IAS Servers Access ... Can you post a sample of the CSV file? ...
    (microsoft.public.windows.server.active_directory)
  • Re: This application must be installed to run. Please run setup...
    ... > You need to change the File Association I think. ... > John G ... > Wot's Your Real Problem? ... now when I open Word I get the error message: ...
    (microsoft.public.word.application.errors)
  • Re: why does it say i have unsent messages in my outbox? you
    ... How does my response not answer that? ... to get at the real problem. ... Right-click on your error message, copy, then paste it into a reply here. ... "suzn" wrote: ...
    (microsoft.public.windows.vista.mail)