Skip to content

Commit

Permalink
fix NPE and setup mvn build with correct version using mvnw
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Lamy <olamy@apache.org>
  • Loading branch information
olamy authored and markt-asf committed Oct 19, 2023
1 parent 026941c commit a3eeed6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/maven.yml
Expand Up @@ -13,5 +13,8 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 11
- name: Set up Maven
run:
mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.2.0:wrapper "-Dmaven=3.9.4"
- name: Build with Maven
run: mvn -B package --file pom.xml -Dvalidate-format
run: ./mvnw -B verify -Dvalidate-format
Expand Up @@ -163,7 +163,7 @@ public class SecformClient extends BaseTckTest {

private Response errorPageRequestResponse = null;

private Map<String,String> cookies = null;
private Map<String,String> cookies = new HashMap<>();

/*
* @class.setup_props: webServerHost; webServerPort; user; password; authuser;
Expand Down Expand Up @@ -2196,7 +2196,6 @@ public Response followRedirect(Response response, int testNum)
*/
public void addNewCookies(final Map<String, String> oldCookies, Map<String, String> newCookies) {
newCookies.forEach((key, value) -> oldCookies.put(key.trim(), value.trim()));

}

/**
Expand Down

0 comments on commit a3eeed6

Please sign in to comment.