[jira] Created: (OFBIZ-4040) NPE when calling org.ofbiz.entity.model.ModelEntity.getTableName(null)

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

[jira] Created: (OFBIZ-4040) NPE when calling org.ofbiz.entity.model.ModelEntity.getTableName(null)

Nicolas Malin (Jira)
NPE when calling org.ofbiz.entity.model.ModelEntity.getTableName(null)
----------------------------------------------------------------------

                 Key: OFBIZ-4040
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4040
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Felice Romano
             Fix For: SVN trunk


When "table name" is required to a "model entity" object, it throws a NPE if  "datasource info" object is null.

Here is the patch:

Have a nice day,
Felice.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-4040) NPE when calling org.ofbiz.entity.model.ModelEntity.getTableName(null)

Nicolas Malin (Jira)

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

Felice Romano updated OFBIZ-4040:
---------------------------------

    Attachment: OFBIZ-4040 ModelEntity.java.patch

> NPE when calling org.ofbiz.entity.model.ModelEntity.getTableName(null)
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-4040
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4040
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Felice Romano
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4040 ModelEntity.java.patch
>
>
> When "table name" is required to a "model entity" object, it throws a NPE if  "datasource info" object is null.
> Here is the patch:
> Have a nice day,
> Felice.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-4040) NPE when calling org.ofbiz.entity.model.ModelEntity.getTableName(null)

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Jacques Le Roux closed OFBIZ-4040.
----------------------------------

    Resolution: Fixed
      Assignee: Jacques Le Roux

Thanks Felice,

Your patch is in trunk at r1040890.

Please next time create your patch from OFBiz root, it's far easier for use to apply. By chance yours was only one line, so I did it by hand...
It's explained here https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices#OFBizContributorsBestPractices-HowtoSendinYourContributions(orhowtocreateandapplypatches)

> NPE when calling org.ofbiz.entity.model.ModelEntity.getTableName(null)
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-4040
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4040
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Felice Romano
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4040 ModelEntity.java.patch
>
>
> When "table name" is required to a "model entity" object, it throws a NPE if  "datasource info" object is null.
> Here is the patch:
> Have a nice day,
> Felice.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.