Add additional diagnostic to investigate EA-51665 (assert: FTManager.createAndStoreBundledTemplate).

This commit is contained in:
Sergey Evdokimov
2014-01-20 17:28:32 +04:00
parent 3c5ad217b8
commit a5e4cf4d13
2 changed files with 7 additions and 1 deletions
@@ -101,4 +101,9 @@ public final class BundledFileTemplate extends FileTemplateBase {
public boolean isTextModified() {
return !getText().equals(getDefaultText());
}
@Override
public String toString() {
return myDefaultTemplate.getTemplateURL() == null ? "" : myDefaultTemplate.getTemplateURL().toString();
}
}
@@ -188,7 +188,8 @@ class FTManager {
final FileTemplateBase previous = myTemplates.put(qName, bundled);
mySortedTemplates = null;
LOG.assertTrue(previous == null, "Duplicate bundled template " + qName);
LOG.assertTrue(previous == null, "Duplicate bundled template " + qName +
" [" + template.getTemplateURL() + ", " + previous + ']');
return bundled;
}