Update AccessPoint.java

Tolerate access point without server node
pull/65/head
DALL'AGNOLA Cédric 7 years ago committed by GitHub
parent d49064f7ff
commit 3564d3a03c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,10 +42,8 @@ public class AccessPoint {
Node serverNode = ParserUtils.getChildNodeWithTag(apNode, "Server");
if (serverNode == null)
throw new SclParserException(apNode, "AccessPoint has no server defined!");
this.server = new Server(serverNode, typeDeclarations);
if (serverNode != null)
this.server = new Server(serverNode, typeDeclarations);
}

Loading…
Cancel
Save