Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355725

Summary: NPE using SysLib.getProperty("file.separator");
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: mheitz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-24 11:42:39 EDT
Running this program results in a NullPointerException

program fetch type BasicProgram {}
  function main()
    try
      fileSeparator String = SysLib.getProperty("file.separator");
       syslib.writestdout("property is " + fileSeparator);
    onException(oops AnyException)
       Syslib.writeStdout("Got undesired exception " + oops.message);
    end
   end
end
Comment 1 Matt Heitz CLA 2011-08-26 14:45:24 EDT
Fixed by the work in Bug 346334 which solved the problem of how to manage access to a RunUnit.  The null pointer was happening because of a previous, abandoned, attempt at a solution.
Comment 2 Kathy Carroll CLA 2011-08-29 10:31:28 EDT
verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:10:09 EDT
Closing this defect.