Skip to content

Commit

Permalink
Fix for naming in proxy factory (NPE).
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-langer committed Jan 28, 2025
1 parent 465f1a0 commit a541051
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
*
* Helidon changes are under the copyright of:
*
* Copyright (c) 2020. 2023 Oracle and/or its affiliates.
* Copyright (c) 2020, 2025 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -237,7 +237,7 @@ static String getProxyName(String contextId, Class<?> proxiedBeanType, Set<? ext
if (typeInfo.getSuperClass() == Object.class) {
// for classes that do not have an enclosing class, we want the super interface to be first
if (proxiedBeanType.getEnclosingClass() == null) {
if (typeInfo.getSuperInterface() == null) {
if (typeInfo.getSuperInterface() == null || bean == null) {
// abstract decorators fall into this category, let's use the type name
return proxiedBeanType.getName() + PROXY_SUFFIX;
}
Expand Down

0 comments on commit a541051

Please sign in to comment.