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

Deepak Dixit updated OFBIZ-5696:
--------------------------------
    Attachment: OFBIZ-5696.patch

I am able to replicate issue, Created a party with type of person, As 
CategoryTree.groovy try to fetch record from "PartyGroup", if associated party 
is type of person then it return NPE. Used PartyHelper method to get the party 
name instead of fetching PartyGroup.

> Main page doesn't show organisation tree in HumanRes
> ----------------------------------------------------
>
>                 Key: OFBIZ-5696
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5696
>             Project: OFBiz
>          Issue Type: Bug
>          Components: humanres
>    Affects Versions: Release Branch 12.04, Release Branch 13.07, Trunk
>            Reporter: Pierre Smits
>         Attachments: OFBIZ-5696.patch
>
>
> When creating an empty setup of OFBiz, and creating a new internal 
> organisation plus departments and employees the organisational tree should 
> show. But, in stead following error is trown:
> {code}
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
> [component://humanres/widget/CommonScreens.xml#OrgTree]: 
> java.lang.IllegalArgumentException: Error running script at location 
> [component://humanres/webapp/humanres/WEB-INF/actions/category/CategoryTree.groovy]:
>  java.lang.NullPointerException: Cannot invoke method getString() on null 
> object (Error running script at location 
> [component://humanres/webapp/humanres/WEB-INF/actions/category/CategoryTree.groovy]:
>  java.lang.NullPointerException: Cannot invoke method getString() on null 
> object)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to