Menu

#65 Pattern application failed (Error message: 'undefined' is null or not an object)

1.0
closed
nobody
None
2017-04-22
2016-06-03
No

WhiteStarUML: 5.5.7.0 / Windows 8.1 (64bit)

Steps to reproduce this error:

  1. open an empty class diagramm
  2. Choose and apply with no changes GoF-Pattern: Composite
  3. Choose GoF-Pattern: Iterator
  4. Let Iterator-Pattern-Class "Aggregate" be the Composite-Pattern-Class "Component"
  5. Let Iterator-Pattern-Class "ConcreteAggregate" be the Composite-Pattern-Classes "Leaf" and "Composite"
  6. click on "apply"

Now I recieve a partial-german error message:
Pattern application failed (Error message: 'undefined' ist Null oder kein Objekt)

My English translation of this is:
Pattern application failed (Error message: 'undefined' is null or not an object)

I don't know: If this message want to give me as user a message for having done a user-error,
or is it a message for the application programmers, that is something wrong in WhiteStarUML.
In both cases I don't understand, what is going wrong.

I have the screenshot attached.
Best regards,
Robert Hartmann

1 Attachments

Discussion

  • Janusz Szpilewski

    It looks like a copy/paste glitch in the Iterator script. Find file:
    \modules\staruml-pattern\pattern repository\GoF\Iterator\Iterator.js

    and replace line 146:
    var conIter_len = concreteAggregate.length - 1;
    with:
    var conIter_len = concreteIterator.length - 1;

     
  • Janusz Szpilewski

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB