Hi,

Thanks for reporting this bug and supplying a fix. You can get a copy of
beanshell.el with my fix from 

http://sunsite.dk/cvsweb/jde/lisp/

- Paul


At 05:21 AM 3/22/01 +0900, Toru TAKAHASHI wrote:
> Trying to run beanshell causes error "Wrong type argument: stringp, nil",
>when both jde-global-classpath and CLASSPATH have no value.
> Windows2000 SP1, GNU Emacs 20.7.1 (i386-*-nt5.0.2195)
>
>beanshell.el: in (defun bsh-internal (&optional display-buffer)
>|                 (if jde-global-classpath
>|                     jde-global-classpath
>|                   (split-string (getenv "CLASSPATH") 
>|                                 jde-classpath-separator))))))
> If jde-global-classpath has no value, function split-string is evaluated. 
>But if environment variable CLASSPATH is not set, (getenv "CLASSPATH") 
>evaluated as nil. So the function split-string causes error.
> I changed the code as follows. This seemed to be Ok.
>But there may be other bug or problem because I'm novice in Emacs Lisp.
>                  (cond (jde-global-classpath jde-global-classpath)
>                       ((getenv "CLASSPATH")
>                         (split-string (getenv "CLASSPATH")
>                                       jde-classpath-separator)))))))
>
>
>---
>Toru TAKAHASHI

Reply via email to