X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=webservices%2Fcompbio%2Fws%2Fclient%2FMetadataHelper.java;h=4803e167c426cf6bc1359e990460d1cca2eae08d;hb=5f8278b40ae7ded9d08d1940bb71d261abca658f;hp=d69c3c1fa513fd6edbb20869a7b354d82b174d8a;hpb=6e1c873d0879f462b1fb1a1efa444cf993a9e76a;p=jabaws.git diff --git a/webservices/compbio/ws/client/MetadataHelper.java b/webservices/compbio/ws/client/MetadataHelper.java index d69c3c1..4803e16 100644 --- a/webservices/compbio/ws/client/MetadataHelper.java +++ b/webservices/compbio/ws/client/MetadataHelper.java @@ -1,8 +1,26 @@ +/* Copyright (c) 2011 Peter Troshin + * + * JAva Bioinformatics Analysis Web Services (JABAWS) @version: 2.0 + * + * This library is free software; you can redistribute it and/or modify it under the terms of the + * Apache License version 2 as published by the Apache Software Foundation + * + * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache + * License for more details. + * + * A copy of the license is in apache_license.txt. It is also available here: + * @see: http://www.apache.org/licenses/LICENSE-2.0.txt + * + * Any republication or derived work distributed in source code form + * must include this copyright and license notice. + */ package compbio.ws.client; import static compbio.ws.client.Constraints.pseparator; import java.util.ArrayList; +import java.util.Collections; import java.util.List; import compbio.data.msa.Metadata; @@ -27,7 +45,11 @@ public class MetadataHelper { */ static List> getParametersList(Metadata msaws) { assert msaws != null; - return msaws.getRunnerOptions().getArguments(); + RunnerConfig config = msaws.getRunnerOptions(); + if (config == null) { + return Collections.emptyList(); + } + return config.getArguments(); } /**