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

NullPointerException in Connection.java #74

Closed
Fischer96 opened this issue Nov 6, 2020 · 3 comments
Closed

NullPointerException in Connection.java #74

Fischer96 opened this issue Nov 6, 2020 · 3 comments

Comments

@Fischer96
Copy link

Moin,

i've started a server, all tracks loaded fine and when i try to connect with the client i just get the following error on the client:

-= AGolf =-
Copyright (c) 2002-2012 Playforia (www.playforia.info)
Programming: Pasi Laaksonen
Graphics: Janne Matilainen

Exception in thread "Thread-8" java.lang.NullPointerException
        at com.aapeli.connection.Connection.run(Connection.java:132)
        at java.lang.Thread.run(Thread.java:748)

And on the server:

Nov 06, 2020 12:09:04 AM org.moparforia.shared.tracks.filesystem.FileSystemTrackManager load
INFO: Loaded 2055 tracks
Nov 06, 2020 12:09:04 AM org.moparforia.shared.tracks.filesystem.FileSystemTrackManager load
INFO: Loaded 7 track sets
Loaded 4 packet handler type(s)
Started server on host 0.0.0.0 with port 4242
Client connected: [id: 0xfc44fb5c, /IP => /IP]
>>> Packet{channel=[id: 0xfc44fb5c, /IP => /IP], type=COMMAND, count=0, message='new'}
Player connected: 0, reconnecting:false
>>> Packet{channel=[id: 0xfc44fb5c, /IP => /IP], type=DATA, count=0, message='version\t35'}
>>> Packet{channel=[id: 0xfc44fb5c, /IP => /IP], type=STRING, count=0, message='tlog\t1\tclientconnect\tloadtime:i:690^loadertime:i:1405'}
Client disconnected: [id: 0xfc44fb5c, /IP :> /IP]

Couldn't really figure out what the problem is, any ideas?

@PhilippvK
Copy link
Owner

Maybe yesterday's "Non-Functional" changes actually introduced some network-bug. I will give it a try and probably revert that commit temporarily to fix it! Thanks for your feedback.

PhilippvK added a commit that referenced this issue Nov 6, 2020
@PhilippvK
Copy link
Owner

@Fischer96 Wow, catching that typo actually took me almost one hour.

Here is the fix: 8436611

Have fun with the game!

@Fischer96
Copy link
Author

@PhilippvK Thanks for the quick fix, everything works fine now!

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