Issue Details (XML | Word | Printable)

Key: LIBOMV-446
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: John Hurliman
Reporter: Snowdrop Short
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
libopenmetaverse

[Patch] Copy constructor of Primitive throws an exception

Created: 14/Feb/09 04:15 AM   Updated: 17/Feb/09 10:55 AM
Component/s: Objects
Affects Version/s: None
Fix Version/s: 0.6.0

File Attachments: 1. Text File constructor.patch (1 kB)


Severity: Medium
Environment: Mono / Linux64
Steps to Reproduce:
create a new Primitive using code like this:

Primitive newPrim = new Primitive(oldPrim);



 Description  « Hide
The copy constructor assumes that if the source primitive has a NameValue or GenericData array, then so will the destination, if the destination has a null value for these properties or the length of the destination array is less than the source array an exception is thrown.

 All   Comments   Change History   Subversion Commits   Patches      Sort Order: Ascending order - Click to sort in descending order
John Hurliman added a comment - 17/Feb/09 10:55 AM
Applied in r2441, thanks! I changed the < comparisons to != to make sure the data matches as close as possible after copying.