[jira] [Comment Edited] (OFBIZ-5713) NPE when database is changed

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Comment Edited] (OFBIZ-5713) NPE when database is changed

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-5713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14098275#comment-14098275 ]

Rong Nguyen edited comment on OFBIZ-5713 at 8/15/14 7:17 AM:
-------------------------------------------------------------

@Jacques: I have two branches, one have default OFBiz model and one for my purpose, the second branch change some fields and add some extra table to datamodel, so when use the same database for two branches, NPE will occur when i switch to the first branch. I guest NPE caused by my scenario, but i am not sure, but when i debug, i see the "field" variable is null because the ModelEntity does not have "curKey".

@Adrian: Now, i have to use two database for two branches. Thank for you reply, i agree with your concern.




was (Author: rongnk):
@Jacques: I have two branch, one have default OFBiz model and one for my purpose, the second branch change some fields and add some extra table to datamodel, so when use the same database for two branches, NPE will occur when i switch to the first branch. I guest NPE caused by my scenario, but i am not sure, but when i debug, i see the "field" variable is null because the ModelEntity does not have "curKey".

@Adrian: Now, i have to use two database for two branches. Thank for you reply, i agree with your concern.



> NPE when database is changed
> ----------------------------
>
>                 Key: OFBIZ-5713
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5713
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>         Environment: Java 7, Linux
>            Reporter: Rong Nguyen
>            Priority: Minor
>         Attachments: Issue-5713.diff
>
>
> Scenario:
>   1. Change table structure: add column to table.
>   2. Not update entity in OBFbiz
>   3. Go to one application(Order, Humanres,...)
> => NPE will occur.



--
This message was sent by Atlassian JIRA
(v6.2#6252)