Wednesday, October 18, 2017

Re: assert false; causes "Cannot read property 'replace' of undefined

I'm compiling with asserts enabled.

I put in an "assert false;" which should cause an assert.

It appears the assert happens, but then the built-in GWT logger isn't checking if it is receiving a NULL/undefined for an assert reason?

My logging configuration from the *.gwt.xml:


<inherits name="com.google.gwt.logging.Logging" />
    <set-property name="gwt.logging.logLevel" value="INFO" />
    <set-property name="gwt.logging.enabled" value="TRUE" />
    <set-property name="gwt.logging.consoleHandler" value="DISABLED" />
    <set-property name="gwt.logging.developmentModeHandler"
        value="ENABLED" />
    <set-property name="gwt.logging.systemHandler" value="ENABLED" />


On 10/18/2017 01:42 PM, Colin Alworth wrote:
Do you have a little more context? At a guess, this is something like String.replace, but the string you are calling it on is null, so the method won't work...

On Wednesday, October 18, 2017 at 11:41:49 AM UTC-5, Michael Joyner wrote:

Eh... don't think this is quite right... it seems an assert  without an ":" argument is not handled properly in the assert logging code.

Wed Oct 18 12:35:36 GMT-400 2017 com.google.gwt.logging.client.LogConfiguration
SEVERE: (TypeError) : Cannot read property 'replace' of undefined
com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'replace' of undefined


--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment