Move simple QueryParams tests
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / databind / jaxrs / QueryParams.java
index 1d22460e5704a931f0197d697e9c89eab12d9b92..d18b0435d80b40939840e37a69da9e301097d2a6 100644 (file)
@@ -103,10 +103,6 @@ public final class QueryParams {
      */
     public static QueryParameters newReadDataParams(final InstanceIdentifierContext<?> identifier,
                                                     final UriInfo uriInfo) {
-        if (uriInfo == null) {
-            return QueryParameters.empty();
-        }
-
         // check only allowed parameters
         final MultivaluedMap<String, String> queryParams = uriInfo.getQueryParameters();
         checkParametersTypes(queryParams.keySet(), ALLOWED_PARAMETERS);