aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhishek Kishore2014-04-28 12:14:23 (EDT)
committerNiraj Modi2014-07-04 06:51:03 (EDT)
commitbf968adbc6ce9e0d17fdeb32374699f837adfa00 (patch)
tree4fe463d6239578cd89905ce4e86939181519b5b0
parentb6d2594672dd6a1fbb8dd7638a90b03237e1c0a3 (diff)
downloadeclipse.platform.swt-bf968adbc6ce9e0d17fdeb32374699f837adfa00.zip
eclipse.platform.swt-bf968adbc6ce9e0d17fdeb32374699f837adfa00.tar.gz
eclipse.platform.swt-bf968adbc6ce9e0d17fdeb32374699f837adfa00.tar.bz2
Bug 274326 - NPE in StyledTextrefs/changes/49/28549/4
Change-Id: I3beefea762139f16c257191f074130e1e1601939 Signed-off-by: Abhishek Kishore <abhishek.kishore@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
index a3fc4d6..3a3ffcb 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
@@ -5966,6 +5966,7 @@ void handleKey(Event event) {
* @param event keyboard event
*/
void handleKeyDown(Event event) {
+ if (isDisposed()) SWT.error (SWT.ERROR_WIDGET_DISPOSED);
if (clipboardSelection == null) {
clipboardSelection = new Point(selection.x, selection.y);
}