Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [joist-dev] Re: [joist-cvs] CVS update: joist/java/org/joist/publish ProxyModule.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

Re: [joist-dev] Re: [joist-cvs] CVS update: joist/java/org/joist/publish ProxyModule.java

Author Daniel Rall <dlr at collab dot net>
Full name Daniel Rall <dlr at collab dot net>
Date 2001-02-27 15:11:32 PST
Message edk at collab dot net writes:

> On Tue, Feb 27, 2001 at 08:47:22PM -0000, stack at tigris dot org wrote:
> > User: stack
> > Date: 01/02/27 12:47:22
> >
> > Modified: java/org/joist/publish Tag: TIGRIS_0_9_2 ProxyModule.java
> > Log:
> > If no query string nor a page, GET '/' rather than throw a NPE
>
> Wouldn't it make more sense to throw an error and return ISE?
> I can't imagine that retrieving / will be correct, and I'd rather have
> our apps be honest when they've encountered an error.

I agree. Throwing NPE is pointless because it's implicit. Any Java
statement involving one or more references can throw a NPE.
--

Daniel Rall <dlr at collab dot net>

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

Re: [joist-dev] Re: [joist-cvs] CVS update: joist/java/org/joist/publish ProxyModule.java Daniel Rall <dlr at collab dot net> Daniel Rall <dlr at collab dot net> 2001-02-27 15:11:32 PST
Messages per page: