[ 
https://issues.apache.org/jira/browse/YUNIKORN-817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Weiwei Yang updated YUNIKORN-817:
---------------------------------
    Summary: Avoid NPE in /ws/v1/nodes/utilization REST API when partition has 
no node  (was: /ws/v1/nodes/utilization causes panic if partition has no node)

> Avoid NPE in /ws/v1/nodes/utilization REST API when partition has no node
> -------------------------------------------------------------------------
>
>                 Key: YUNIKORN-817
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-817
>             Project: Apache YuniKorn
>          Issue Type: Bug
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.0.0
>
>
> `PartitionContext#totalPartitionResource` is null if the partition has no 
> node. We need to check null before converting it to dao object. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to