andotorg commented on issue #13135:
URL: https://github.com/apache/dubbo/issues/13135#issuecomment-1736588167

   `public static String getInterfaceName(Invocation invocation) {
           if (invocation.getServiceModel() != null && 
invocation.getServiceModel().getServiceMetadata() != null) {
               return 
invocation.getServiceModel().getServiceMetadata().getServiceInterfaceName();
           } else {
               String serviceUniqueName = 
invocation.getTargetServiceUniqueName();
               String interfaceAndVersion;
               String[] arr = serviceUniqueName.split(PATH_SEPARATOR);
               if (arr.length == 2) {
                   interfaceAndVersion = arr[1];
               } else {
                   interfaceAndVersion = arr[0];
               }
               String[] ivArr = interfaceAndVersion.split(GROUP_CHAR_SEPARATOR);
               return ivArr[0];
           }
       }`
   
   
   Cannot invoke "String.split(String)" because "serviceUniqueName" is null


-- 
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