Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 38987 Details for
Bug 137613
[data models] NPE in DataModelSynchHelper
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch to DataModelSynchHelper
patch.txt (text/plain), 1.52 KB, created by
Daniel Berg
on 2006-04-19 17:33:36 EDT
(
hide
)
Description:
Patch to DataModelSynchHelper
Filename:
MIME Type:
Creator:
Daniel Berg
Created:
2006-04-19 17:33:36 EDT
Size:
1.52 KB
patch
obsolete
>Index: wtp_ui/org/eclipse/wst/common/frameworks/internal/datamodel/ui/DataModelSynchHelper.java >=================================================================== >RCS file: /cvsroot/webtools/wst/components/common/plugins/org.eclipse.wst.common.frameworks.ui/wtp_ui/org/eclipse/wst/common/frameworks/internal/datamodel/ui/DataModelSynchHelper.java,v >retrieving revision 1.8 >diff -u -r1.8 DataModelSynchHelper.java >--- wtp_ui/org/eclipse/wst/common/frameworks/internal/datamodel/ui/DataModelSynchHelper.java 5 Apr 2006 19:39:27 -0000 1.8 >+++ wtp_ui/org/eclipse/wst/common/frameworks/internal/datamodel/ui/DataModelSynchHelper.java 19 Apr 2006 21:20:53 -0000 >@@ -214,6 +214,9 @@ > try { > currentWidget = (Widget) propertyToWidgetHash.get(propertyName); > if (currentWidget != null && currentWidget != currentWidgetFromEvent) { >+ //We must hold a copy in a temp variable because setting the widget value >+ //may trigger an event that will cause this method to be called again. >+ Widget widget = currentWidget; > try { > if (currentWidget instanceof Text) > setWidgetValue(propertyName, flag, (Text) currentWidget); >@@ -232,7 +235,8 @@ > } finally { > ignoreModifyEvent = false; > } >- setEnablement((Control) currentWidget, dataModel.isPropertyEnabled(propertyName)); >+ //Pass the copy of the currentWidget >+ setEnablement((Control) widget, dataModel.isPropertyEnabled(propertyName)); > } > } finally { > currentWidget = null;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 137613
: 38987