NPE with a simple Directory example

2007-04-04 Thread Jeff Walter
Hey All, I'm trying simply to access some files in a directory and am getting a NPE in the ApplicationDispatcher.handle method. Here's my example: TestLauncher.java import org.restlet.Component ; import org.restlet.data.Protocol; public class TestLauncher { public static void

Re: NPE with a simple Directory example

2007-04-04 Thread Thierry Boileau
Hello Jeff, your application has been instantiated with its parent context, i.e the one of the component. You should proceed like this component.getDefaultHost().attach(, new TestApplication(component.getContext())); Best regards, Thierry Boileau Hey All, I'm trying simply to