Xwiam commented on issue #14477:
URL: https://github.com/apache/dubbo/issues/14477#issuecomment-2257867462

   when mH2i.getSerializerFactory().getClassLoader() is null , the NPE 
exception will occur
   
   public <T> T readObject(Class<T> cls, Type type) throws IOException, 
ClassNotFoundException {
           if 
(!mH2i.getSerializerFactory().getClassLoader().equals(Thread.currentThread().getContextClassLoader()))
 {
               
mH2i.setSerializerFactory(hessian2FactoryManager.getSerializerFactory(Thread.currentThread().getContextClassLoader()));
           }
           return readObject(cls);
       }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to