History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-11716
Type: Bug Bug
Status: Open Open
Assignee: Dmitry Jemerov
Reporter: Gordon Tyler
Votes: 1
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Error creating patch

Created: 19 Feb 07 19:53   Updated: 05 Sep 07 19:54
Component/s: Version Control Integration, Version Control Integration. CVS

Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-12568 "Create Patch" fails with strange err... Resolved

Build: 6,700
Severity: High


 Description  « Hide
When I try to shelve a changelist or create a patch, I get a simple error dialog which just says "Error creating patch: null".

 All   Comments   Work Log   Change History      Sort Order:
Dmitry Jemerov - 19 Feb 07 19:55
Are there any exceptions in idea.log?

Gordon Tyler - 19 Feb 07 20:29
Not that I can find.

Dmitry Jemerov - 27 Feb 07 20:01
I've added some diagnostics for this. Could you please try the next EAP build (the next after 6708) and tell me what error message or exception in idea.log you get?

Gordon Tyler - 01 Mar 07 19:12
I just tried with a single modified file and I didn't get any error. So the conditions must be more complex than that. Possibly multiple files across multiple modules must be modified. I'll let you know if I discover the correct conditions to reproduce the problem.

Nikolay Chashnikov - 10 Apr 07 09:54
I've got the same problem.
idea.log:
2007-04-10 09:49:51,012 [ 332916]   INFO - atch.CreatePatchCommitExecutor -
java.lang.NullPointerException
        at com.intellij.openapi.diff.impl.patch.PatchBuilder.getRelativePath(PatchBuilder.java:193)
        at com.intellij.openapi.diff.impl.patch.PatchBuilder.buildPatchHeading(PatchBuilder.java:207)
        at com.intellij.openapi.diff.impl.patch.PatchBuilder.buildDeletedFile(PatchBuilder.java:161)
        at com.intellij.openapi.diff.impl.patch.PatchBuilder.buildPatch(PatchBuilder.java:60)
        at com.intellij.openapi.vcs.changes.patch.CreatePatchCommitExecutor$CreatePatchCommitSession.execute(CreatePatchCommitExecutor.java:151)
        at com.intellij.openapi.vcs.changes.ui.CommitChangeListDialog$2$1.run(CommitChangeListDialog.java:296)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:124)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:145)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:115)
        at com.intellij.openapi.application.impl.ApplicationImpl$6$1.run(ApplicationImpl.java:354)
        at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:273)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
        at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:104)

Gordon Tyler - 10 Apr 07 20:16
This is working for me in build 6808 with one or more modified files.

Taras Tielkes - 18 Apr 07 13:37
I can trigger this in #6913. Some details:
-Using SVN
-I select a revision that's newer than the WC that I have
-patch name contains ' character

After processing the changes part of the revision, a popup with the message "Error creating patch: null" shows.

Exception in idea.log:

2007-04-18 11:45:29,666 [ 154172]   INFO - atch.CreatePatchCommitExecutor -  
java.lang.NullPointerException
	at com.intellij.openapi.diff.impl.patch.PatchBuilder.a(PatchBuilder.java:64)
	at com.intellij.openapi.diff.impl.patch.PatchBuilder.a(PatchBuilder.java:103)
	at com.intellij.openapi.diff.impl.patch.PatchBuilder.buildPatch(PatchBuilder.java:112)
	at com.intellij.openapi.vcs.changes.patch.CreatePatchCommitExecutor$CreatePatchCommitSession.execute(CreatePatchCommitExecutor.java:33)
	at com.intellij.openapi.vcs.changes.actions.CreatePatchFromChangesAction.actionPerformed(CreatePatchFromChangesAction.java:23)
	at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:122)
	at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:105)
	at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:47)
	at java.awt.Component.processEvent(Component.java:5266)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3968)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1778)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:144)
	at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:139)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:89)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)