Fix AotUtils NPE (#13825)

Signed-off-by: crazyhzm <crazyhzm@gmail.com>
This commit is contained in:
huazhongming 2024-03-05 09:46:25 +08:00 committed by GitHub
parent 22b3c29b08
commit 3f2e0e18c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -59,7 +59,9 @@ public class AotUtils {
}
}));
registerSerializationType(registerType.getSuperclass(), hints, serializationTypeCache);
if (registerType.getSuperclass() != null) {
registerSerializationType(registerType.getSuperclass(), hints, serializationTypeCache);
}
}
}
}

View File

@ -19,4 +19,6 @@ package org.apache.dubbo.config.spring6.utils;
public interface DemoService {
HelloResponse sayHello(HelloRequest request);
String sayHelloForSerializable(java.io.Serializable name);
}