View Issue Details

IDProjectCategoryView StatusLast Update
0001952SymmetricDSBugpublic2015-01-06 17:27
ReporterasinvaniAssigned Tochenson 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version3.6.5 
Target Version3.7.0Fixed in Version3.7.0 
Summary0001952: NullPointerException when setting replication for an unsupported table in PostgreSQL
DescriptionIn PostgreSqlDdlReader::readTable line 83:

setPrimaryKeyConstraintName(connection, table);

is done outside the if (table != null) condition, which in turn causes a NullPointerException in line 93:

pstmt.setString(1, table.getName());

Steps To Reproducecreate a table with no primary key and no columns (or any non-supported table in PostgreSQL), and set SymmetricDS to replicate all tables
TagsNo tags attached.

Activities

asinvani

2014-09-04 04:10

reporter   ~0000568

Suggested fix: move setPrimaryKeyConstraintName inside the "if (table != null)" block.

Related Changesets

SymmetricDS: master 0e470de8

2014-09-04 07:33:35

chenson

Details Diff
0001952: NullPointerException when setting replication for an unsupported table in PostgreSQL
0001952
mod - symmetric-jdbc/src/main/java/org/jumpmind/db/platform/postgresql/PostgreSqlDdlReader.java Diff File

Issue History

Date Modified Username Field Change
2014-09-04 04:08 asinvani New Issue
2014-09-04 04:10 asinvani Note Added: 0000568
2014-09-04 07:33 chenson Fixed in Version => 3.7.0
2014-09-04 07:33 chenson Target Version => 3.7.0
2014-09-04 07:33 chenson Status new => resolved
2014-09-04 07:33 chenson Resolution open => fixed
2014-09-04 07:33 chenson Assigned To => chenson
2014-09-04 08:00 chenson Changeset attached => SymmetricDS trunk r8661
2015-01-06 17:27 chenson Status resolved => closed
2015-07-30 21:49 chenson Changeset attached => SymmetricDS master 0e470de8