Bug 516567: [GTK] Crash when setting disposed image in Label.setImage 

Adding guard to honor illegal argument exception contract.
similar to TableItem:setImage().
This prevents the jvm crash reported in bug.

Also found the same issue in Decorations:setImage().

I checked all other setImage() calls in all SWT widgets,
all other calls had the appropriate guard (including Button).

Change-Id: I95c4f83e1c914c32110c8a6936f6393303c01923
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=516567
Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2 files changed
tree: c6d17f922d208b32d717a879e5b80c389baabd99
  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!