Skip to content
Snippets Groups Projects
Commit f347603d authored by Alex Reimers's avatar Alex Reimers
Browse files

Fix a null pointer exception in creating virtual networks.

parent fb47ccd6
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ public class NetworkResource extends ServerResource {
// We try to get the ID from the URI only if it's not
// in the POST data
if (network.guid != null) {
if (network.guid == null) {
String guid = (String) getRequestAttributes().get("network");
if ((guid != null) && (!guid.equals("null")))
network.guid = guid;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment