diff --git a/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java b/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java index 7872e5631..74683fb24 100644 --- a/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java +++ b/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java @@ -151,7 +151,7 @@ public class CodeServlet extends HttpServlet { public CodeServlet(String mainClass, String[] classPath) { this.mainClass = mainClass; - this.classPath = classSource != null ? classPath.clone() : new String[0]; + this.classPath = classPath != null ? classPath.clone() : new String[0]; httpClient = new HttpClient(); httpClient.setFollowRedirects(false);