Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

NullPointerException if stdin not available #52

Open
davidschlachter opened this issue May 20, 2020 · 0 comments
Open

NullPointerException if stdin not available #52

davidschlachter opened this issue May 20, 2020 · 0 comments
Assignees
Labels

Comments

@davidschlachter
Copy link
Collaborator

davidschlachter commented May 20, 2020

If the server is started in a situation where there is no stdin (e.g. from cron or rc.d), the following error is raised:

Unexpected error while reading from console!
java.lang.NullPointerException
	at ca.uottawa.ui.ScheduleGeneratorServer.handleMessageFromServerUI(ScheduleGeneratorServer.java:267)
	at ca.uottawa.ui.ServerConsole.accept(ServerConsole.java:67)
	at ca.uottawa.ui.ServerConsole.main(ServerConsole.java:121)

While this doesn't appear to affect the operation of the program, it would be nice to clean up.

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

No branches or pull requests

1 participant