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

java.lang.NullPointerException #10

Closed
Zubayer011 opened this issue Aug 31, 2020 · 7 comments
Closed

java.lang.NullPointerException #10

Zubayer011 opened this issue Aug 31, 2020 · 7 comments
Labels
bug Something isn't working

Comments

@Zubayer011
Copy link

This issue was automatically created by the RemoteLight ExceptionHandler.
RemoteLightCore version: v0.2.4-rc1
Java version: 1.8.0_261
OS: Windows 10
StackTrace:

java.lang.NullPointerException
	at de.lars.remotelightcore.RemoteLightCore.showNotification(RemoteLightCore.java:269)
	at de.lars.remotelightcore.RemoteLightCore.showErrorNotification(RemoteLightCore.java:287)
	at de.lars.remotelightcore.RemoteLightCore.<init>(RemoteLightCore.java:125)
	at de.lars.remotelightclient.Main.<init>(Main.java:90)
	at de.lars.remotelightclient.Main.main(Main.java:78)

Aug 31, 2020 10:54 PM

@Drumber
Copy link
Owner

Drumber commented Aug 31, 2020

Hey, thanks for your bug report! Since this bug has been occupying me for quite some time and I cannot reproduce the cause, I would have 2 more questions:

  • Does the error occur every time RemoteLight is started, or only sometimes?
  • Are all settings and outputs deleted after this error occurs?

I would appreciate it if you could send me the log file that corresponds to the error.
You can find it in C:\Users\%YourUserName%\.RemoteLight\logs

Thanks in advance.

@Drumber Drumber added the bug Something isn't working label Aug 31, 2020
@snowsign
Copy link

snowsign commented Sep 1, 2020

It happens for me every time I start the app. It shows the splash screen, then crashes.

@Drumber
Copy link
Owner

Drumber commented Sep 1, 2020

Hi, thanks for your reply. Could you check if the folder .RemoteLight exists in the C:\Users\%yourUsername%\ directory.
Should look something like this:
.RemoteLight folder

If the folder exists, is there a data.json file in it? If so, could you check if the file is read or write protected.

data file properties

I assume that RemoteLight cannot access the directory. Do you have an AntiVirus or anything else that could block the file access?

@snowsign
Copy link

snowsign commented Sep 1, 2020

My permissions look identical to yours. I don't have any sort of antivirus, and it feel like it would be a much bigger issue if it was being picked up by windows defender. It seems like there's some malformed JSON at the end of
the file (I had to change the extension so that GitHub would accept it; it's normal in the actual folder)

@Drumber
Copy link
Owner

Drumber commented Sep 1, 2020

Oh, I see what happened. The file was not completely written to disk. Deleting data.json should at least make RemoteLight usable for you.
I will try to find and fix the bug before the next release.
Thanks for sending, it helped me a lot. 👍

Drumber added a commit that referenced this issue Sep 1, 2020
@Drumber
Copy link
Owner

Drumber commented Sep 5, 2020

Just released the new version that hopefully fixes the bug.
> https://github.com/Drumber/RemoteLight/releases/tag/v0.2.4-rc2

@Drumber
Copy link
Owner

Drumber commented Sep 8, 2020

Hey, I would like to know if the bug was fixed with v0.2.4-rc2 so I can close this issue.

@Drumber Drumber closed this as completed Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants