openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick (JIRA)" <>
Subject [jira] [Commented] (OPENJPA-2005) PostgresDictionary.isOwnedSequence needs a null check
Date Wed, 25 May 2011 14:00:47 GMT


Michael Dick commented on OPENJPA-2005:

Thanks for reporting this. Do you have an example of what strName is when you get the failure?

> PostgresDictionary.isOwnedSequence needs a null check
> -----------------------------------------------------
>                 Key: OPENJPA-2005
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.1.0
>            Reporter: Mark Lilback
>            Assignee: Michael Dick
>            Priority: Minor
>   Original Estimate: 5m
>  Remaining Estimate: 5m
> In, Line 430 calls buildNames(strName) to get a String[][]. Right
below this, a for loop references namePairs.length. However, buildNames can return null, which
results in a NullPointerException. While this is inside a try/catch, it still fills my logs
up with warning messages (10 stack traces at launch for a single table with a sequence). Skipping
the loop when namePairs is null would solve this.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message