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

Bug 354369

Summary: Expecting NullValueException for various EString functions
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-10 08:20:32 EDT
When using the following string functions, I got a java NullPointerException rather than an edt NullValueException.

  indexOf
  lastIndexOf
  endsWith
  startsWith
  replaceStr
  length
  clip
  clipLeading
  trim
  toUppercase
  toLowercase
  charCodeAt

  str string? = null;
  size int;
  try
     size = str.length();
     syslib.writestdout("failed");
  onException (nullEx NullValueException)
     sysLib.writeStdout("Success);
  onException (badEx AnyException)
     sysLib.writeStdout("failure);
  end
Comment 1 Jeff Douglas CLA 2011-08-11 11:30:00 EDT
fixed
Comment 2 Kathy Carroll CLA 2011-08-12 07:52:39 EDT
Verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:06:18 EDT
Closing this defect.