Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit f5ba66b

Browse files
committed
fixed complaints by sbouchet
Signed-off-by: Andre Dietisheim <[email protected]>
1 parent 3c01257 commit f5ba66b

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

src/main/.DS_Store

-8 KB
Binary file not shown.

src/main/java/org/jboss/tools/intellij/openshift/actions/HelmAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2019 Red Hat, Inc.
2+
* Copyright (c) 2023 Red Hat, Inc.
33
* Distributed under license by Red Hat, Inc. All rights reserved.
44
* This program is made available under the terms of the
55
* Eclipse Public License v2.0 which accompanies this distribution,

src/main/java/org/jboss/tools/intellij/openshift/tree/application/ApplicationsRootNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void setLogged(boolean logged) {
7979

8080
public CompletableFuture<Odo> getOdo() {
8181
return getOdo(true);
82-
};
82+
}
8383

8484
public CompletableFuture<Odo> getOdo(boolean notify) {
8585
if (odoFuture == null) {

src/main/java/org/jboss/tools/intellij/openshift/tree/application/ApplicationsTreeStructure.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,16 @@ private List<BindingNode> getBindings(ComponentNode element) {
229229
private Object[] getRegistries(ApplicationsRootNode root) {
230230
List<DevfileRegistryNode> result = new ArrayList<>();
231231
Odo odo = root.getOdo().getNow(null);
232-
try {
233-
odo.listDevfileRegistries().forEach(registry ->
234-
result.add(new DevfileRegistryNode(root, registries, registry))
235-
);
236-
} catch (IOException e) {
237-
LOGGER.warn(e.getLocalizedMessage(), e);
232+
if (odo != null) {
233+
try {
234+
odo.listDevfileRegistries().forEach(registry ->
235+
result.add(new DevfileRegistryNode(root, registries, registry))
236+
);
237+
} catch (IOException e) {
238+
LOGGER.warn(e.getLocalizedMessage(), e);
239+
}
240+
return result.toArray();
238241
}
239-
return result.toArray();
240242
}
241243

242244
private Object[] getRegistryComponentTypes(DevfileRegistryNode element) {

src/main/java/org/jboss/tools/intellij/openshift/ui/SwingUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2022 Red Hat, Inc.
2+
* Copyright (c) 2023 Red Hat, Inc.
33
* Distributed under license by Red Hat, Inc. All rights reserved.
44
* This program is made available under the terms of the
55
* Eclipse Public License v2.0 which accompanies this distribution,

0 commit comments

Comments
 (0)