[Bug 500475] Guard 'doubleClickSelection' with 'doubleClickEnabled'.

The field 'doubleClickSelection' might be accessed only in case
'doubleClickEnabled' is true. Otherwise it will be null and NPE is the
result. In case 'doubleClickEnabled = false" 'selectionAnchor' will
already have the correct value.

Added snippet to reproduce bug.

Change-Id: Id5743435fd231dc03df8376122495a51b9bcb662
Signed-off-by: Arne Deutsch <arne@idedeluxe.com>
2 files changed
tree: e6eede0fd0db40cfead97f9c91edba6410cf0662
  1. bundles/
  2. examples/
  3. features/
  4. local-build/
  5. tests/
  6. .gitignore
  7. pom.xml
  8. README.md
README.md

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).

Contact:

Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!