goodow / realtime-operation Goto Github PK
View Code? Open in Web Editor NEWAn operational transform library for Java
Home Page: https://github.com/goodow/realtime/
An operational transform library for Java
Home Page: https://github.com/goodow/realtime/
当android端频繁的点击下载,删除时,出现空指针异常。
产生的原因:在遍历linkedList时,另一个线程在修改集合。
错误信息如下:
FATAL EXCEPTION: Thread-307
java.lang.NullPointerException
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.realtime.Document.scheduleEvent(Document.java:271)
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.realtime.CollaborativeObject.fireEvent(CollaborativeObject.java:89)
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.realtime.CollaborativeMap.putAndFireEvent(CollaborativeMap.java:342)
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.realtime.CollaborativeMap.access$100(CollaborativeMap.java:54)
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.realtime.CollaborativeMap$1.set(CollaborativeMap.java:278)
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.realtime.CollaborativeMap$1.set(CollaborativeMap.java:270)
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.realtime.operation.map.AbstractMapOperation.apply(AbstractMapOperation.java:36)
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.realtime.operation.map.AbstractMapOperation.apply(AbstractMapOperation.java:18)
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.realtime.CollaborativeMap.consume(CollaborativeMap.java:270)
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.realtime.DocumentBridge.applyLocally(DocumentBridge.java:240)
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.realtime.DocumentBridge.consumeAndSubmit(DocumentBridge.java:171)
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.realtime.CollaborativeObject.consumeAndSubmit(CollaborativeObject.java:85)
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.realtime.CollaborativeMap.set(CollaborativeMap.java:239)
09-17 10:28:22.121: E/AndroidRuntime(5284): at com.goodow.drive.android.toolutils.OfflineFileObserver$1.run(OfflineFileObserver.java:144)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.