1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

Polish: Fix Findbugs Warnings

Change-Id: Ia43fad4721162d3e834d95773ad604247cd92556
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
This commit is contained in:
Martin Oberhuber 2016-06-06 01:36:16 +02:00
parent 8854fc9696
commit da9b43493e
2 changed files with 2 additions and 2 deletions

View file

@ -409,7 +409,7 @@ public class ExternalExecutablesDialog extends TrayDialog {
*/
public void setExecutableData(Map<String, String> data) {
if (data == null) {
executableData = data;
executableData = null;
} else {
executableData = new HashMap<String, String>(data);
}

View file

@ -285,7 +285,7 @@ public class ExternalExecutablesManager {
}
// if the icon is still to big -> downscale the biggest
if (id.height > 16 && id.width > 16) {
if (id != null && id.height > 16 && id.width > 16) {
id = biggest.scaledTo(16, 16);
}