summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/gen
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2009-02-06 21:51:27 +0000
committerBrian S. O'Neill <bronee@gmail.com>2009-02-06 21:51:27 +0000
commit7b9a86384107ac127b0007fd767131633f8ce786 (patch)
treeebe288d59770a8330e46c63b0127f05cac4e9294 /src/main/java/com/amazon/carbonado/gen
parent0040cf72f1a878d5e19253036ae38b09a6a48567 (diff)
Fix index updates when derived index against joined storable is deleted.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/gen')
-rw-r--r--src/main/java/com/amazon/carbonado/gen/StorableGenerator.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java b/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java
index 5e1d1fc..87dede1 100644
--- a/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java
+++ b/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java
@@ -826,6 +826,9 @@ public final class StorableGenerator<S extends Storable> {
int count = property.getJoinElementCount();
for (int i=0; i<count; i++) {
StorableProperty internal = property.getInternalJoinElement(i);
+ if (internal.getWriteMethod() == null) {
+ continue;
+ }
StorableProperty external = property.getExternalJoinElement(i);
b.loadLocal(b.getParameter(0));