@Component</BUG>
public class NgsiValidation {
private static Logger logger = LoggerFactory.getLogger(NgsiValidation.class);
public void checkUpdateContext(UpdateContext updateContext) throws MissingRequestParameterException {
if (updateContext.getUpdateAction() == null) {
<BUG>throw new MissingRequestParameterException("updateAction", "UpdateAction");

}
if ((updateContext.getContextElements() == null) && (!updateContext.getUpdateAction().isDelete())) {
throw new MissingRequestParameterException("contextElements", "List<ContextElement>");
}
if (updateContext.getContextElements().isEmpty() && (!updateContext.getUpdateAction().isDelete())) {</BUG>
throw new MissingRequestParameterException("contextElements", "List<ContextElement>");

package com.orange.ngsi.server;
import com.orange.ngsi.exception.MissingRequestParameterException;
import com.orange.ngsi.model.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import java.net.URI;
import java.util.List;
@Component
public class NgsiValidation {
private static Logger logger = LoggerFactory.getLogger(NgsiValidation.class);
public void checkUpdateContext(UpdateContext updateContext) throws MissingRequestParameterException {
if (updateContext.getUpdateAction() == null) {
throw new MissingRequestParameterException("updateAction", "string");
