Skip to content

Commit

Permalink
Merge pull request #672 from hussainnm/fix-npe
Browse files Browse the repository at this point in the history
#625 Resolve NullPointerException
  • Loading branch information
scottmarlow authored Mar 18, 2021
2 parents ba30c81 + 28fdf60 commit 912de88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/com/sun/ts/lib/deliverable/cts/CTSPropertyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,11 @@ public Properties getTestSpecificProperties(String[] sPropKeys)
pTestProps.put("securedWebServicePort",
getProperty("securedWebServicePort"));
pTestProps.put("webServerPort", getProperty("webServerPort"));
pTestProps.put("client.cert.test.jdk.tls.client.protocols",
getProperty("client.cert.test.jdk.tls.client.protocols", null));

String sTlsClientProtocols = getProperty("client.cert.test.jdk.tls.client.protocols", null);
if (sTlsClientProtocols != null) {
pTestProps.put("client.cert.test.jdk.tls.client.protocols", sTlsClientProtocols);
}

// add properties used for JPA 2.2 tests.
pTestProps.put("persistence.unit.name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@ public Properties getTestSpecificProperties(String[] sPropKeys)
getProperty("porting.ts.url.class.1"));
pTestProps.put("porting.ts.HttpsURLConnection.class.1",
getProperty("porting.ts.HttpsURLConnection.class.1", null));
pTestProps.put("client.cert.test.jdk.tls.client.protocols",
getProperty("client.cert.test.jdk.tls.client.protocols", null));

String sTlsClientProtocol = getProperty("client.cert.test.jdk.tls.client.protocols", null);
if (sTlsClientProtocol != null) {
pTestProps.put("client.cert.test.jdk.tls.client.protocols", sTlsClientProtocol);
}

String tsHome = getProperty("TS_HOME", null);
if (tsHome == null)
Expand Down

0 comments on commit 912de88

Please sign in to comment.