Closed ghost closed 10 years ago
Should no longer cause out of bounds exception, should return a default object.
I verify that this is working but it has an unanticipated side effect. The following code
test_cargo.setVehicleName("InsertLoadTest");
test_cargo.Update();
Cargo test_cargo2 = Cargo.LoadAll(new String("where ShipName = 'InsertLoadTest'")).get(0);
Returns that it cannot find the object in the database. The object is clearly in the database. I can verify that it is there manually. So while it no longer returns an out of bounds exception when trying to load a non-existent object it is failing to properly load an existing object.
Is this resolved then as soon as its added to the other classes?
This may need more work. I'll fix my code and it may need reverted because there are other issues that expect it to return nothing.
The following code snippet creates an out of bounds exception
I am thinking it should return a default object or something like that. It does not exit cleanly. It will need fixed for all classes, not just cargo