Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StreamingProxy.isRunning() causes null pointer exception #37

Closed
jdc18 opened this issue Jan 23, 2017 · 1 comment
Closed

StreamingProxy.isRunning() causes null pointer exception #37

jdc18 opened this issue Jan 23, 2017 · 1 comment

Comments

@jdc18
Copy link

jdc18 commented Jan 23, 2017

I dont know if this is a bug, or it is a design thing, so here is this issue I am facing.
I am declaring a StreamingProxy object and initializing. I am checking if the proxy is running or not depending at first it is something like this

		if(streamer.isRunning()){
			log.info("Is Running");
		}else{
			log.info("No esta corriendo");
		}

I am getting
"Caused by: java.lang.NullPointerException: null
at org.red5.proxy.StreamingProxy.isRunning(StreamingProxy.java:241)",
and it makes sense because the state is never set even if it is initialized because there is no constructor or anything.
Shouldnt it starts as stopped?

@mondain
Copy link
Member

mondain commented Jan 24, 2017

I added UNINITIALIZED state and this should be resolved in next push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants