Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » java,lang,NullPointerException
java,lang,NullPointerException [message #153634] Mon, 22 May 2006 00:37
Eclipse UserFriend
Originally posted by: faireni.walla.com

i have a openReportEditor method as shown below:
private void openReportEditor() {

serverUrlText.setText("http://127.0.0.1:8181/birt/");
String uri = serverUrlText.getText();

ReportEditorInput input = new ReportEditorInput();
input.setUri(uri);

OpenNewBrowserAction action = new OpenNewBrowserAction(input);
action.run();}

when i have created a button and i would like to call the
openReportEditor. i did it in this way,

button2.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
openReportEditor();
}

but the exception of ' java.lang.NullPointerException' is caught.
how to fix it?? thanks.
Previous Topic:Why can't i to run Eclipse on Mac OSX ???
Next Topic:eclipse crashes at startup with latest java 6
Goto Forum:
  


Current Time: Thu Apr 18 08:32:43 GMT 2024

Powered by FUDForum. Page generated in 0.03498 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top