Skip to content

Commit

Permalink
fix NPE in Mantis6235IntegrationTest (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
mprins committed Oct 3, 2019
1 parent f93952f commit 78eba77
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@
</xsl:call-template>
</fk_2nnp_sc_identif>
</xsl:when>
<xsl:when test="$vve_id and ../nhr:Rechtspersoon[@id = substring($vve_id,2)]/pers:identificatie">
<fk_2nnp_sc_identif>
<xsl:call-template name="nen_identificatie">
<xsl:with-param name="id" select="../nhr:Rechtspersoon[@id = substring($vve_id,2)]/pers:identificatie"/>
</xsl:call-template>
</fk_2nnp_sc_identif>
</xsl:when>
</xsl:choose>
</app_re>
</xsl:template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void setUp() throws Exception {
staging.getConfig().setProperty(DatabaseConfig.PROPERTY_DATATYPE_FACTORY, new PostgresqlDataTypeFactory());
}

IDataSet stagingDataSet = new XmlDataSet(new FileInputStream(new File(Mantis6166IntegrationTest.class.getResource("/mantis6235/staging.xml").toURI())));
IDataSet stagingDataSet = new XmlDataSet(new FileInputStream(new File(Mantis6235IntegrationTest.class.getResource("/mantis6235/staging.xml").toURI())));

sequential.lock();

Expand All @@ -112,10 +112,9 @@ public void setUp() throws Exception {
public void cleanup() throws Exception {
brmo.closeBrmoFramework();

CleanUtil.cleanRSGB(rsgb);
rsgb.close();

CleanUtil.cleanRSGB_BRK(rsgb, true);
CleanUtil.cleanSTAGING(staging);
rsgb.close();
staging.close();

sequential.unlock();
Expand Down
Loading

0 comments on commit 78eba77

Please sign in to comment.