Hi all,

Found a simple bugger at line 113 in vergil.tree.PTree.  Seems the test
for if the path is null appears after its use in another condition. 
Here's a little patch:

Index: ptolemy/vergil/tree/PTree.java
===================================================================
RCS file: /home/cvs/cvsanon/ptII/ptolemy/vergil/tree/PTree.java,v
retrieving revision 1.33
diff -w -r1.33 PTree.java
113,116d112
<                 if (path.getLastPathComponent() instanceof
EntityLibrary) {
<                     //this prevents a user from dragging a folder.
<                     return;
<                 }
121a118,121
>                 if (path.getLastPathComponent() instanceof
EntityLibrary) {
>                     //this prevents a user from dragging a folder.
>                     return;
>                 }


Kevin

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to