Created
April 4, 2017 00:54
-
-
Save ailabs-software/44b313db4e713a5adf345be992a0384f to your computer and use it in GitHub Desktop.
GWT error when nesting for loops
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void resolveResize(Size targetSize) | |
{ | |
// Main loop over layout boxes. | |
for (CartesianLayoutBox box : xyLayout.getLayoutBoxes() ) | |
{ | |
// Try each resolution strategy, only one can match the box. | |
// The acceptance dependent upon the resolution strategy identifying the relationship of the box to other boxes or the viewport. | |
for (IResolutionStrategy resolutionStrategy : resolutionStrategies) | |
{ | |
if ( resolutionStrategy.accepts(box) ) { | |
throw new Error("RUN_STRATEGY_NOW"); | |
} | |
} | |
} | |
} | |
ERROR: | |
Uncaught TypeError: Cannot read property '$_nullMethod' of null | |
at $resolveResize (PipelineSystem-0.js:6575) | |
at $handleToggle (PipelineSystem-0.js:6514) | |
at CouponLab$0methodref$handleToggle$Type.apply_87 [as apply_1] (PipelineSystem-0.js:6569) | |
at $proxyMethod (PipelineSystem-0.js:2200) | |
at $dispatchEvent (PipelineSystem-0.js:1146) | |
at Button.dispatchControlAction (PipelineSystem-0.js:1488) | |
at Control$2methodref$dispatchControlAction$Type.apply_33 [as apply_1] (PipelineSystem-0.js:4341) | |
at $proxyMethod (PipelineSystem-0.js:2200) | |
at DOMEventTarget$0methodref$proxyMethod$Type.apply_6 [as apply_0] (PipelineSystem-0.js:1808) | |
at apply_88 (PipelineSystem-0.js:6655) | |
at entry0 (PipelineSystem-0.js:6688) | |
at HTMLButtonElement.<anonymous> (PipelineSystem-0.js:6678) | |
GWT COMPILER OUTPUT AROUND ERROR, (PRETTY): | |
var Lclient_javabuilder_CouponLab$0methodref$handleToggle$Type_2_classLit = createForClass('client.javabuilder', 'CouponLab/0methodref$handleToggle$Type', 250); | |
function $resolveResize(this$static){ | |
var resolutionStrategy$iterator; | |
for (null.$_nullMethod().$_nullMethod(); null.$_nullMethod();) { | |
null.$_nullMethod(); | |
for (resolutionStrategy$iterator = new ArrayList$1(this$static.resolutionStrategies); resolutionStrategy$iterator.i < resolutionStrategy$iterator.this$01.array.length;) { | |
castTo($next_0(resolutionStrategy$iterator), 346); | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment