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

BackendClient gets Null Pointer with cursor positions enabled and host closes file #42

Open
GoogleCodeExporter opened this issue Apr 18, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Uncomment lines 107-119 in Editors/Document.java to re-enable cursor 
positions
2. Become host and share a file that already has some text (no other users 
needed)
3. Click anywhere in the file to generated a cursor FEU
4. Right-click on file in Shared Files and close shared file
5. Do something else as host, like share another file

** Null Pointer exception at this point, see below **


Please provide any additional information below.

*** Eclipse Application Output ***

!SESSION 2011-06-12 14:26:24.108 -----------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.6.0_24
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.sdk.ide
Command-line arguments:  -product org.eclipse.sdk.ide -data 
/Users/rvmiller89/eclipse/plugin_dev/../runtime-EclipseApplication -dev 
file:/Users/rvmiller89/eclipse/plugin_dev/.metadata/.plugins/org.eclipse.pde.cor
e/Eclipse Application/dev.properties -os macosx -ws cocoa -arch x86_64 
-consoleLog

!ENTRY org.eclipse.core.net 1 0 2011-06-12 14:26:33.920
!MESSAGE System property http.nonProxyHosts has been set to 
local|*.local|169.254/16|*.169.254/16 by an external source. This value will be 
overwritten using the values from the preferences
Received: FEU: NF | Type: Connection_Succeed | ASGN ID: 0

GetUpdate: FEU: NF | Type: Connection_Succeed | ASGN ID: 0
Sent: FEU: NF | Type: User_Connected | UID: 0 | UNAME: Ryan

Received: FEU: NF | Type: User_Connected | UID: 0 | UNAME: Ryan

Received: FEU: NF | Type: User_Connected | UID: 0 | UNAME: Ryan

GetUpdate: FEU: NF | Type: User_Connected | UID: 0 | UNAME: Ryan
Received: FEU: NF | Type: New_Host | UID: -1 | FID: -1 | CONTENT:  | 

GetUpdate: FEU: NF | Type: User_Connected | UID: 0 | UNAME: Ryan
GetUpdate: FEU: NF | Type: New_Host | UID: -1 | FID: -1 | CONTENT:  | 
Sent: FEU: NF | Type: Request_Host | UID: 0 | FID: -1 | CONTENT: Ryan | 

Received: FEU: NF | Type: New_Host | UID: 0 | FID: -1 | CONTENT:  | 

GetUpdate: FEU: NF | Type: New_Host | UID: 0 | FID: -1 | CONTENT:  | 
Sent: FEU: NF | Type: New_Shared_File | UID: 0 | FID: 0 | CONTENT: Test.txt | 

Received: FEU: NF | Type: New_Shared_File | UID: 0 | FID: 0 | CONTENT: Test.txt 
| 

GetUpdate: FEU: NF | Type: New_Shared_File | UID: 0 | FID: 0 | CONTENT: 
Test.txt | 
Sent: FEU: MU | FID: 0 | UID: 0 | RVN: 0 | FEUID: 0 | Type: Cursor | SLOC: 6

Received: FEU: MU | FID: 0 | UID: 0 | RVN: 1 | FEUID: 0 | Type: Cursor | SLOC: 6

*** Closing shared file: 0 - Test.txt
Sent: FEU: NF | Type: Close_Shared_File | UID: 0 | FID: 0 | CONTENT: Test.txt | 

Received: FEU: NF | Type: Close_Shared_File | UID: 0 | FID: 0 | CONTENT: 
Test.txt | 

GetUpdate: FEU: NF | Type: Close_Shared_File | UID: 0 | FID: 0 | CONTENT: 
Test.txt | 
java.lang.NullPointerException
    at multitype.BackendClient$2.run(BackendClient.java:178)
    at java.lang.Thread.run(Thread.java:680)
GetUpdate: FEU: NF | Type: Server_Disconnect | UID: -1 | FID: -1 | CONTENT: 
java.lang.NullPointerException
multitype.BackendClient$2.run(BackendClient.java:178)
java.lang.Thread.run(Thread.java:680)
 | 


*** Server Output ***


Server Running.
Accepted Client
Sending: --------------------
Notification FEU:
type: Connection_Succeed
assign id: 0
---------------------
Sent client UID: 0
Client Added
Received: --------------------
Notification FEU:
type: User_Connected
user id: 0
username: Ryan
---------------------
Sending 1 users to client 0
Sending: --------------------
Notification FEU:
type: User_Connected
user id: 0
username: Ryan
---------------------
Sending: --------------------
Notification FEU:
type: User_Connected
user id: 0
username: Ryan
---------------------
Sending: --------------------
Notification FEU:
type: New_Host
---------------------
Received: --------------------
Notification FEU:
type: Request_Host
---------------------
Sending: --------------------
Notification FEU:
type: New_Host
---------------------
Received: --------------------
Notification FEU:
type: New_Shared_File
---------------------
Sending: --------------------
Notification FEU:
type: New_Shared_File
---------------------
Added a new file. FID: 0
Received: --------------------
Markup FEU:
file id: 0
user id: 0
rev: 0
type: Cursor
start loc: 6
---------------------
Taking feu: FEU: MU | FID: 0 | UID: 0 | RVN: 1 | FEUID: 0 | Type: Cursor | 
SLOC: 6

Sending: --------------------
Markup FEU:
file id: 0
user id: 0
rev: 1
type: Cursor
start loc: 6
---------------------
Received: --------------------
Notification FEU:
type: Close_Shared_File
---------------------
Removed file 0
Sending: --------------------
Notification FEU:
type: Close_Shared_File
---------------------

Original issue reported on code.google.com by [email protected] on 12 Jun 2011 at 6:29

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

No branches or pull requests

1 participant