Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354369 - Expecting NullValueException for various EString functions
Summary: Expecting NullValueException for various EString functions
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 08:20 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-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.