String title = (String) params.get(Param.TITLE);
sb.append(Param.TITLE.getValue()).append(title.replace(" ", "+"));
} else {
throw new OMDBException(ApiExceptionType.INVALID_URL, "Must include a search or ID");
}
<BUG>if (params.has(Param.YEAR)) {</BUG>
appendParam(params, Param.YEAR, sb);
<BUG>}</BUG>
if (params.has(Param.PLOT)
&& (PlotType) params.get(Param.PLOT) != PlotType.getDefault()) {

String title = (String) params.get(Param.TITLE);
sb.append(Param.TITLE.getValue()).append(title.replace(" ", "+"));
} else {
throw new OMDBException(ApiExceptionType.INVALID_URL, "Must include a search or ID");
}
appendParam(params, Param.YEAR, sb);
if (params.has(Param.PLOT)
&& (PlotType) params.get(Param.PLOT) != PlotType.getDefault()) {
