1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-02-28 02:45:59 +01:00

NPE fixed

This commit is contained in:
Oleg Shpynov 2011-03-18 17:37:50 +03:00
parent 424c7ab88c
commit 474dfa1f30

View File

@ -439,6 +439,9 @@ public class ChangeGroup extends AbstractActionGroup {
* @param count The number of times to repeat the previous insert
*/
private void repeatInsertText(Editor editor, DataContext context, int count) {
if (lastStrokes == null) {
return;
}
for (int i = 0; i < count; i++) {
// Treat other keys special by performing the appropriate action they represent in insert/replace mode
for (Object lastStroke : lastStrokes) {