alexsazo / rosjava

Automatically exported from code.google.com/p/rosjava
0 stars 0 forks source link

Patch for /rosjava_bootstrap/src/main/java/org/ros/internal/message/GenerateInterfaces.java #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Environment variable ROS_PACKAGE_PATH may not be set.  I added a conditional 
statement to avoid NullPointerException

I was encountering this problem whenever I tried build:

:rosjava_messages:generateSources Exception in thread "main" 
java.lang.NullPointerException at 
org.ros.internal.message.GenerateInterfaces.main(GenerateInterfaces.java:162)

FAILURE: Build failed with an exception.

What went wrong: Execution failed for task ':rosjava_messages:generateSources'. 
> Command 
'/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/bin/java' 
finished with (non-zero) exit value 1.

Original issue reported on code.google.com by dev.yei...@gmail.com on 25 Mar 2013 at 10:58

Attachments:

GoogleCodeExporter commented 9 years ago
Issue was previously encountered.  However, it looks like the previously 
proposed patch was not applied:

https://code.google.com/p/rosjava/issues/detail?id=135&sort=-id

Original comment by dev.yei...@gmail.com on 25 Mar 2013 at 11:09