You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2013/09/10 00:11:10 UTC
git commit: ISIS-478: fixing null pointer exception in
EntityLinkSimplePanel
Updated Branches:
refs/heads/master 69d0989eb -> ad6b896fa
ISIS-478: fixing null pointer exception in EntityLinkSimplePanel
... happens when attempt to edit an object that has a colleciton of objects within
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/ad6b896f
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/ad6b896f
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/ad6b896f
Branch: refs/heads/master
Commit: ad6b896faf60278156880feefca5a687f69d1d7c
Parents: 69d0989
Author: Dan Haywood <da...@apache.org>
Authored: Mon Sep 9 22:44:36 2013 +0100
Committer: Dan Haywood <da...@apache.org>
Committed: Mon Sep 9 22:44:36 2013 +0100
----------------------------------------------------------------------
.../widgets/entitysimplelink/EntityLinkSimplePanel.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/ad6b896f/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/entitysimplelink/EntityLinkSimplePanel.java
----------------------------------------------------------------------
diff --git a/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/entitysimplelink/EntityLinkSimplePanel.java b/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/entitysimplelink/EntityLinkSimplePanel.java
index c4d2720..439e5f6 100644
--- a/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/entitysimplelink/EntityLinkSimplePanel.java
+++ b/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/entitysimplelink/EntityLinkSimplePanel.java
@@ -85,7 +85,6 @@ public class EntityLinkSimplePanel extends FormComponentPanelAbstract<ObjectAdap
syncWithInput();
}
-
@Override
protected void onBeforeRender() {
syncWithInput();
@@ -120,6 +119,11 @@ public class EntityLinkSimplePanel extends FormComponentPanelAbstract<ObjectAdap
public void onCancel() {
}
+ @Override
+ public void validate() {
+ // no-op since immutable
+ }
+
private ObjectAdapter getPendingElseCurrentAdapter() {
return getEntityModel().getPendingElseCurrentAdapter();
}