{"action":"created","issue":{"url":"https://api.github.com/repos/welovecoding/editorconfig-netbeans/issues/87","labels_url":"https://api.github.com/repos/welovecoding/editorconfig-netbeans/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/welovecoding/editorconfig-netbeans/issues/87/comments","events_url":"https://api.github.com/repos/welovecoding/editorconfig-netbeans/issues/87/events","html_url":"https://github.com/welovecoding/editorconfig-netbeans/issues/87","id":107141715,"number":87,"title":"paste - undo - redo combination causes a weirdly formatted file","user":{"login":"FinBoWa","id":756860,"avatar_url":"https://avatars.githubusercontent.com/u/756860?v=3","gravatar_id":"","url":"https://api.github.com/users/FinBoWa","html_url":"https://github.com/FinBoWa","followers_url":"https://api.github.com/users/FinBoWa/followers","following_url":"https://api.github.com/users/FinBoWa/following{/other_user}","gists_url":"https://api.github.com/users/FinBoWa/gists{/gist_id}","starred_url":"https://api.github.com/users/FinBoWa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FinBoWa/subscriptions","organizations_url":"https://api.github.com/users/FinBoWa/orgs","repos_url":"https://api.github.com/users/FinBoWa/repos","events_url":"https://api.github.com/users/FinBoWa/events{/privacy}","received_events_url":"https://api.github.com/users/FinBoWa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/welovecoding/editorconfig-netbeans/labels/prio:%20high","name":"prio: high","color":"fbca04"},{"url":"https://api.github.com/repos/welovecoding/editorconfig-netbeans/labels/type:%20bug","name":"type: bug","color":"F38630"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-18T06:32:02Z","updated_at":"2015-10-06T11:03:06Z","closed_at":null,"body":"This happens at least on PHP projects with the latest version and not always.\r\n\r\nSteps to repro:\r\n\r\n1. open file for example an xml file\r\n2. paste something to it, preferably a block with the wrong indentation\r\n3. save\r\n4. undo\r\n5. save\r\n\r\nYou are likely to end up a file that displayed with broken indentations.\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/welovecoding/editorconfig-netbeans/issues/comments/145822977","html_url":"https://github.com/welovecoding/editorconfig-netbeans/issues/87#issuecomment-145822977","issue_url":"https://api.github.com/repos/welovecoding/editorconfig-netbeans/issues/87","id":145822977,"user":{"login":"FinBoWa","id":756860,"avatar_url":"https://avatars.githubusercontent.com/u/756860?v=3","gravatar_id":"","url":"https://api.github.com/users/FinBoWa","html_url":"https://github.com/FinBoWa","followers_url":"https://api.github.com/users/FinBoWa/followers","following_url":"https://api.github.com/users/FinBoWa/following{/other_user}","gists_url":"https://api.github.com/users/FinBoWa/gists{/gist_id}","starred_url":"https://api.github.com/users/FinBoWa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FinBoWa/subscriptions","organizations_url":"https://api.github.com/users/FinBoWa/orgs","repos_url":"https://api.github.com/users/FinBoWa/repos","events_url":"https://api.github.com/users/FinBoWa/events{/privacy}","received_events_url":"https://api.github.com/users/FinBoWa/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T11:03:06Z","updated_at":"2015-10-06T11:03:06Z","body":"@Yserz I just neglegted to press the \"resolve\" button on the \"Resolve Project problems\" :)\r\n\r\nIm presuming that I got the build to install the updated version and I get the issue much easier now.\r\n\r\nPresumably this error relates to the issue: \r\n\r\njava.lang.NullPointerException\r\n\tat com.welovecoding.nbeditorconfig.processor.FileInfo.lambda$null$2(FileInfo.java:46)\r\n\tat com.welovecoding.nbeditorconfig.processor.FileInfo$$Lambda$38/2072241570.run(Unknown Source)\r\n\tat org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:323)\r\n\tat org.openide.text.NbDocument.runAtomic(NbDocument.java:436)\r\n\tat com.welovecoding.nbeditorconfig.processor.FileInfo.lambda$getCaret$3(FileInfo.java:45)\r\n\tat com.welovecoding.nbeditorconfig.processor.FileInfo$$Lambda$37/1724303092.run(Unknown Source)\r\n\tat com.welovecoding.nbeditorconfig.processor.FileInfo.getCaret(FileInfo.java:50)\r\n\tat com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter.writeWithEditorKit(StyledDocumentWriter.java:126)\r\n\tat com.welovecoding.nbeditorconfig.processor.WriteEditorAction.run(WriteEditorAction.java:26)\r\n\tat org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)\r\n\tat org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:641)\r\n\tat org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:431)\r\n\tat com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor.lambda$null$0(EditorConfigProcessor.java:253)\r\n\tat com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor$$Lambda$42/1751159954.run(Unknown Source)\r\n\tat org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:323)\r\n\tat org.openide.text.NbDocument.runAtomic(NbDocument.java:436)\r\n\tat com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor.lambda$updateChangesInEditorWindow$1(EditorConfigProcessor.java:251)\r\n\tat com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor$$Lambda$41/492807662.run(Unknown Source)\r\n\tat java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:702)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:696)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:719)\r\n\tat org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)\r\n[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\n"}}