Opened 15 years ago

Closed 15 years ago

#488 closed defect (fixed)

Managed API: Managned Exception Constructor returns null

Reported by: gregboone Owned by: gregboone
Priority: minor Milestone: 3.5.0
Component: FDO API Version: 3.4.0
Severity: 3 Keywords:
Cc: External ID: 1209691

Description (last modified by gregboone)

Modify the implementation of

   NAMESPACE_OSGEO_COMMON::Exception::Create(System::IntPtr ex)
  • Change the if (IntPtr::Zero == ex) check to: if (IntPtr::Zero != ex)
  • Have a single return point in the function
  • Avoid trying to create a nested NAMESPACE_OSGEO_COMMON::Exception object for the nested FDO exception if the nested FDO cause exception is NULL
  • Add a try...catch block so that this method does not throw errors.

Change History (2)

comment:1 by gregboone, 15 years ago

Description: modified (diff)

comment:2 by gregboone, 15 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.