paperclips-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paperclips-discuss] HEAD, was: API_23_ALPHA_2_1


From: Christopher K. St. John
Subject: Re: [Paperclips-discuss] HEAD, was: API_23_ALPHA_2_1
Date: Mon, 25 Jun 2001 17:32:02 -0500

 HTTPResponse.java:

  001:   public void setContentType(String type) {
  002:     if(type!=null || type.length()<1)
  003:     setHeader("Content-Type",type);
  004:   }

 NullPointerException's on type==null, one possible
fix:

  002:   if (type==null || type.length()<1) return;
  003:   setHeader("Content-Type", type);


-- 
Christopher St. John address@hidden
DistribuTopia http://www.distributopia.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]