fixing ArrayStoreException - we want to dump the map keys to the array; not the map entries vcs-indexing-integration-167098
authorVita Stejskal <vstejskal@netbeans.org>
Wed, 14 Oct 2009 15:28:14 +0200
branchvcs-indexing-integration-167098
changeset 14981832a910d6b6cf
parent 149817 8b89360e97d4
child 149819 1e1851fcf4a1
fixing ArrayStoreException - we want to dump the map keys to the array; not the map entries
mercurial/src/org/netbeans/modules/mercurial/ui/commit/CommitAction.java
     1.1 --- a/mercurial/src/org/netbeans/modules/mercurial/ui/commit/CommitAction.java	Wed Oct 14 13:25:04 2009 +0200
     1.2 +++ b/mercurial/src/org/netbeans/modules/mercurial/ui/commit/CommitAction.java	Wed Oct 14 15:28:14 2009 +0200
     1.3 @@ -439,7 +439,7 @@
     1.4                      commitCmd.handle();
     1.5                      return null;
     1.6                  }
     1.7 -            }, commitCandidates.entrySet().toArray(new File[commitCandidates.entrySet().size()]));
     1.8 +            }, commitCandidates.keySet().toArray(new File[commitCandidates.keySet().size()]));
     1.9          } catch (HgException ex) {
    1.10              NotifyDescriptor.Exception e = new NotifyDescriptor.Exception(ex);
    1.11              DialogDisplayer.getDefault().notifyLater(e);