org.mozilla.javascript.JavaScriptException: TypeError: Cannot call method "replace" of undefined (script#5)

GitHub | gkankstech | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Script fails if 7 is used for Sunday instead of 0

    GitHub | 7 months ago | gkankstech
    org.mozilla.javascript.JavaScriptException: TypeError: Cannot call method "replace" of undefined (script#5)

    Root Cause Analysis

    1. org.mozilla.javascript.JavaScriptException

      TypeError: Cannot call method "replace" of undefined (script#5)

      at org.mozilla.javascript.gen.script_11._c_anonymous_11()
    2. org.mozilla.javascript
      script_11.call
      1. org.mozilla.javascript.gen.script_11._c_anonymous_11(script:5)
      2. org.mozilla.javascript.gen.script_11.call(script)
      2 frames
    3. Rhino
      OptRuntime.callProp0
      1. org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119)
      1 frame
    4. org.mozilla.javascript
      script_11.call
      1. org.mozilla.javascript.gen.script_11._c_anonymous_9(script:5)
      2. org.mozilla.javascript.gen.script_11.call(script)
      2 frames
    5. Rhino
      OptRuntime.call2
      1. org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
      1 frame
    6. org.mozilla.javascript
      script_11.call
      1. org.mozilla.javascript.gen.script_11._c_script_0(script:11)
      2. org.mozilla.javascript.gen.script_11.call(script)
      2 frames
    7. Rhino
      ScriptRuntime.doTopCall
      1. org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
      2. org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3178)
      2 frames
    8. org.mozilla.javascript
      script_11.exec
      1. org.mozilla.javascript.gen.script_11.call(script)
      2. org.mozilla.javascript.gen.script_11.exec(script)
      2 frames