[jira] [Commented] (OFBIZ-5875) Example component causes null pointer exception message on page

2014-11-15 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14213512#comment-14213512
 ] 

Jacques Le Roux commented on OFBIZ-5875:


Adrian,

Just curious, then why not make (at least) modelMenu private? It's only used in 
ModelMenuItem class. Same is true for all variables declared below it.

 Example component causes null pointer exception message on page
 ---

 Key: OFBIZ-5875
 URL: https://issues.apache.org/jira/browse/OFBIZ-5875
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Trunk
Reporter: Wai
Assignee: Adrian Crum
 Fix For: Upcoming Branch

 Attachments: OFBIZ-5875.patch


 When user selects the Example component, a null pointer exception happens and 
 stack trace is shown on the page.



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


[jira] [Commented] (OFBIZ-5875) Example component causes null pointer exception message on page

2014-11-15 Thread Adrian Crum (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14213598#comment-14213598
 ] 

Adrian Crum commented on OFBIZ-5875:


That will be done eventually. See my recent changes to ModelForm.java.

 Example component causes null pointer exception message on page
 ---

 Key: OFBIZ-5875
 URL: https://issues.apache.org/jira/browse/OFBIZ-5875
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Trunk
Reporter: Wai
Assignee: Adrian Crum
 Fix For: Upcoming Branch

 Attachments: OFBIZ-5875.patch


 When user selects the Example component, a null pointer exception happens and 
 stack trace is shown on the page.



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


[jira] [Commented] (OFBIZ-5875) Example component causes null pointer exception message on page

2014-11-15 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14213758#comment-14213758
 ] 

Jacques Le Roux commented on OFBIZ-5875:


OK, thanks.

 Example component causes null pointer exception message on page
 ---

 Key: OFBIZ-5875
 URL: https://issues.apache.org/jira/browse/OFBIZ-5875
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Trunk
Reporter: Wai
Assignee: Adrian Crum
 Fix For: Upcoming Branch

 Attachments: OFBIZ-5875.patch


 When user selects the Example component, a null pointer exception happens and 
 stack trace is shown on the page.



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


[jira] [Commented] (OFBIZ-5875) Example component causes null pointer exception message on page

2014-11-13 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14210133#comment-14210133
 ] 

Jacques Le Roux commented on OFBIZ-5875:


Is it an issue OOTB or did you add code to get this error? In any case, could 
you give more information about steps to reproduce, thanks!

 Example component causes null pointer exception message on page
 ---

 Key: OFBIZ-5875
 URL: https://issues.apache.org/jira/browse/OFBIZ-5875
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Trunk
Reporter: Wai
 Attachments: OFBIZ-5875.patch


 When user selects the Example component, a null pointer exception happens and 
 stack trace is shown on the page.



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


[jira] [Commented] (OFBIZ-5875) Example component causes null pointer exception message on page

2014-11-13 Thread Wai (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14211217#comment-14211217
 ] 

Wai commented on OFBIZ-5875:


This is from the latest sources from the trunk.

-check out the latest trunk source
-$ ant load-demo
-go to http://localhost:8080/example

You get a null pointer exception at the console output.

 Example component causes null pointer exception message on page
 ---

 Key: OFBIZ-5875
 URL: https://issues.apache.org/jira/browse/OFBIZ-5875
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Trunk
Reporter: Wai
 Attachments: OFBIZ-5875.patch


 When user selects the Example component, a null pointer exception happens and 
 stack trace is shown on the page.



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


[jira] [Commented] (OFBIZ-5875) Example component causes null pointer exception message on page

2014-11-13 Thread youssef khaye (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14211281#comment-14211281
 ] 

youssef khaye commented on OFBIZ-5875:
--

Hi jacques,

I confirm, It's an issue OOTB, you only need to go the example component and 
you can see menu without any elements.
reading the code its seems that one constructor from ModelMenuItem was remove 
recently, so menu items created dynamically (for example portalPage children) 
has no modelMenu assigned.
thanks.

 Example component causes null pointer exception message on page
 ---

 Key: OFBIZ-5875
 URL: https://issues.apache.org/jira/browse/OFBIZ-5875
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Trunk
Reporter: Wai
 Attachments: OFBIZ-5875.patch


 When user selects the Example component, a null pointer exception happens and 
 stack trace is shown on the page.



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


[jira] [Commented] (OFBIZ-5875) Example component causes null pointer exception message on page

2014-11-13 Thread Adrian Crum (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14211481#comment-14211481
 ] 

Adrian Crum commented on OFBIZ-5875:


Jacques - please do not add setters to model classes.

 Example component causes null pointer exception message on page
 ---

 Key: OFBIZ-5875
 URL: https://issues.apache.org/jira/browse/OFBIZ-5875
 Project: OFBiz
  Issue Type: Bug
  Components: framework
Affects Versions: Trunk
Reporter: Wai
Assignee: Adrian Crum
 Fix For: Upcoming Branch

 Attachments: OFBIZ-5875.patch


 When user selects the Example component, a null pointer exception happens and 
 stack trace is shown on the page.



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