kearygriffin / streambaby

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

streambaby crashes on startup when run from / #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cd /
2. Run streambaby

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

Expect streambaby to start up with:

    Initializing StreamBaby v0.29...
    05/17/10 20:20:57 Listener: added factory
    05/17/10 20:20:57 Main: streambaby ready & listening.

Instead, I see:

Initializing StreamBaby v0.29...
Exception in thread "main" java.lang.ExceptionInInitializerError
    at
com.unwiredappeal.tivo.streambaby.StreamBabyMain.main(StreamBabyMain.java:38)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: -1
    at java.lang.String.substring(String.java:1938)
    at
com.unwiredappeal.tivo.config.StreamBabyConfig.getCurDir(StreamBabyConfig.java:8
09)
    at
com.unwiredappeal.tivo.config.StreamBabyConfig.setupDefaultDirectories(StreamBab
yConfig.java:815)
    at
com.unwiredappeal.tivo.config.StreamBabyConfig.<clinit>(StreamBabyConfig.java:37
)
    ... 1 more

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

v0.29 on OpenSolaris 2009.06 (snv_111b).

Please provide any additional information below.

I encountered this while writing an SMF manifest for streambaby. It's easy
to workaround by running it from a different working directory, but it's
also an easy fix to line 795 of StreamBabyConfig.java.

Original issue reported on code.google.com by dave.pac...@gmail.com on 18 May 2010 at 3:26

GoogleCodeExporter commented 9 years ago
I just made what I think is the necessary change-- Try the SVN version.

Original comment by kearygri...@gmail.com on 18 May 2010 at 4:07