kiranchavala opened a new issue, #10910:
URL: https://github.com/apache/cloudstack/issues/10910

   ### problem
   
   NPE when deleting a project from the admin account
   
   ### versions
   
   ACS 4.20 
   
   ### The steps to reproduce the bug
   
   1. Login as admin user 
   2. Create a project 
   3. Delete a project
   4. Exception observed
   
   <img width="1130" alt="Image" 
src="https://github.com/user-attachments/assets/5d8138f0-40d3-4a05-8813-b8cc3875fbfe";
 />
   
   Logs 
   
   ```
   2025-05-22 12:40:54,038 ERROR [c.c.a.ApiServer] 
(qtp1390913202-21:[ctx-f9b44c85, ctx-da1c70ff]) (logid:b1f7970c) unhandled 
exception executing api command: [Ljava.lang.String;@3bc67b8 
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" 
because "projectRoles" is null
        at 
org.apache.cloudstack.api.command.admin.acl.project.ListProjectRolesCmd.execute(ListProjectRolesCmd.java:85)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:173)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:831)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:652)
        at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:354)
        at com.cloud.api.ApiServlet$1.run(ApiServlet.java:157)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
        at org.apache.cl
   ```
   
   
   
   ### What to do about it?
   
   There should be no NPE
   
   The issue doesn't  occur in a normal user account 


-- 
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: commits-unsubscr...@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to