AtingTot / wave-protocol

Automatically exported from code.google.com/p/wave-protocol
0 stars 0 forks source link

RandomDocOpGenerator.main fails #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build
2. cd build/core
3. Run `java
org.waveprotocol.wave.model.document.operation.debug.RandomDocOpGenerator`

Output:

i=0, j=0
old: <blip><p>abc</p></blip>
old: || {}; << blip {}; || {}; << p {}; || {}; ++"a"; || {}; ++"b"; || {};
++"c"; || {}; >>; || {}; >>; || {}; 
op:  [skip]
new: [skip]
new: ABCDE<blip blipId="h3"><?a a="1"
b="1"?><w:input>ABCDEFGHI</w:input><?a a c="1"?><p _t="li"
state="0">aabc<?a b c?>bc</p></blip>
Exception in thread "main" java.lang.NullPointerException: Schema
constraints required, if not, use DocumentSchema.NO_SCHEMA_CONSTRAINTS
        at
org.waveprotocol.wave.model.util.Preconditions.checkNotNull(Preconditions.java:7
7)
        at
org.waveprotocol.wave.model.document.operation.impl.DocOpValidator.validate(DocO
pValidator.java:48)
        at
org.waveprotocol.wave.model.document.operation.debug.RandomDocOpGenerator.main(R
andomDocOpGenerator.java:1410)

The exception above is not expected, it should output more examples.

What version of the product are you using? On what operating system?

Latest version from hg repository on Linux.

Original issue reported on code.google.com by alexey.s...@gmail.com on 26 Nov 2009 at 9:55

GoogleCodeExporter commented 9 years ago

Original comment by oh...@google.com on 26 Nov 2009 at 10:11

GoogleCodeExporter commented 9 years ago

Original comment by oh...@google.com on 17 Feb 2010 at 6:57