On 5/10/11 4:29 PM, Bingliu wrote:
I got the source of camel-2.4.0 and copied the
org.apache.camel.impl.osgi.Activator.The sentence
----------------------------------------------
  Enumeration<URL>  e = bundle.findEntries("/" + pkg.replace('.', '/'),
"*.class", true);
----------------------------------------------
when ("/" + pkg.replace('.', '/')) equals "org.apache.camel.component.file",
"e" is null. then the sentence
----------------------------------------------
  while (e.hasMoreElements()) {
----------------------------------------------
will throw NullPointException.

I just checked the current trunk code, the NPE part was changed to
 while (e != null && e.hasMoreElements()) {
few days ago by Claus.
Can you try out the latest Camel 2.8-SNAPSHOT ?


--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Connect at CamelOne May 24-26
The Open Source Integration Conference
http://camelone.com

Reply via email to