mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Polish: Fix Findbugs Warnings
Change-Id: Ia43fad4721162d3e834d95773ad604247cd92556 Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
This commit is contained in:
parent
8854fc9696
commit
da9b43493e
2 changed files with 2 additions and 2 deletions
|
@ -409,7 +409,7 @@ public class ExternalExecutablesDialog extends TrayDialog {
|
||||||
*/
|
*/
|
||||||
public void setExecutableData(Map<String, String> data) {
|
public void setExecutableData(Map<String, String> data) {
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
executableData = data;
|
executableData = null;
|
||||||
} else {
|
} else {
|
||||||
executableData = new HashMap<String, String>(data);
|
executableData = new HashMap<String, String>(data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -285,7 +285,7 @@ public class ExternalExecutablesManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the icon is still to big -> downscale the biggest
|
// 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);
|
id = biggest.scaledTo(16, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue