gnperumal / codeswarm

Automatically exported from code.google.com/p/codeswarm
GNU General Public License v3.0
0 stars 0 forks source link

NullPointerException in CodeSwarmConfig.stringToColor #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ant run
2. entered my svn repository url
3. sat and watched

What is the expected output? What do you see instead?

Expected: a nice visualization :)

Saw:

[java] Exception in thread "Animation Thread" 
java.lang.NullPointerException
[java]     at CodeSwarmConfig.stringToColor(CodeSwarmConfig.java:253)
[java]     at CodeSwarmConfig.getColorProperty(CodeSwarmConfig.java:161)
[java]     at code_swarm.setup(code_swarm.java:210)
[java]     at processing.core.PApplet.handleDraw(PApplet.java:1372)
[java]     at processing.core.PApplet.run(PApplet.java:1300)
[java]     at java.lang.Thread.run(Thread.java:595)

What version of the product are you using? On what operating system?

Not sure how to find a version number for this thing. I used:

rictic-code_swarm-f61cb18011dcbceb8bb3b9970899c16eebec91ce.zip

Windows XP SP3

Please provide any additional information below.

Original issue reported on code.google.com by benhau...@gmail.com on 28 Jan 2009 at 1:16

GoogleCodeExporter commented 9 years ago
Ah, in the current version in the git repository, the ant run method hasn't 
seen much
love lately.

To help me debug, would you mind trying the following?

1. add code_swarm/bin to your PATH:  cd path/to/code_swarm/bin; export 
PATH=$PATH:`pwd` 
2. checkout your svn project (skip this if you've already got it checked out on 
your
machine)
3. cd your_project
4. code_swarm

That should download the project's history and display the visualization for it 
all
in one step.  If that works, then the problem is in the ant run path has a bug 
in it.

Original comment by ric...@gmail.com on 28 Jan 2009 at 5:14

GoogleCodeExporter commented 9 years ago
I can confirm it works when I run from the command line. I'm on Windows (and 
the 
above instructions don't seem to work for me) so I actually typed:

C:\code_swarm\run

Original comment by benhau...@gmail.com on 28 Jan 2009 at 6:05