Bugs item #1914390, was opened at 2008-03-14 09:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1914390&group_id=44253
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Debugger
Group: 6: Crashes
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unhandled exception: java.lang.NullPointerException
Initial Comment:
DrJava Version : 20080112-0033
on WIN-XP SP2
with currenly newest JDK verision (as of March 14 2008)
When I run the following code i get DrJava error :
import java.io.*;
import java.util.Scanner;
public class ScanFajlli {
public static void main(String arg[]) throws IOException {
Scanner s = null;
// String f = null;
try {
s.useDelimiter("\t");
s = new Scanner(new BufferedReader(new FileReader("test.txt")));
while (s.hasNext()) {
System.out.println(s.next());
}
} finally {
if (s != null) {
s.close();
}
}
}
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1914390&group_id=44253
|