Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355725 - NPE using SysLib.getProperty("file.separator");
Summary: NPE using SysLib.getProperty("file.separator");
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 11:42 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:19 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.