You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Rong Nguyen (JIRA)" <ji...@apache.org> on 2014/08/15 09:19:18 UTC

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

    [ 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)