Copyright plugin exception

I copied an existing JSP that had a comment block, but there was no
copyright information.

No message
java.lang.NullPointerException
at
com.maddyhome.idea.copyright.psi.UpdateJavaFileCopyright.updateComment(UpdateJavaFileCopyright.java:130)
at
com.maddyhome.idea.copyright.psi.UpdateJavaFileCopyright.update(UpdateJavaFileCopyright.java:83)
at
com.maddyhome.idea.copyright.util.CommandHelper$2.run(CommandHelper.java:45)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:17)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:30)
at
com.maddyhome.idea.copyright.util.CommandHelper$1.run(CommandHelper.java:39)
at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:427)
at
com.maddyhome.idea.copyright.util.CommandHelper.runUpdate(CommandHelper.java:35)
at
com.maddyhome.idea.copyright.CopyrightPluginImpl$2.run(CopyrightPluginImpl.java:77)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:39)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:10)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:52)
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)



Here is the page that I copied:
<%--
$Header:
/srv/rcs/cvs/se/products/JXPortal/web/admin/legacy/ChangeLink.jsp,v 1.3
2005/03/24 00:04:39 nshelton Exp $
$Log: ChangeLink.jsp,v $
Revision 1.3 2005/03/24 00:04:39 nshelton
Finished the Help.

Revision 1.2 2005/03/18 01:05:22 nshelton
Fixed the admin menu's.

Revision 1.1 2005/03/15 18:40:16 nshelton
Link admin works.

--%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="jxp"
uri="http://www.justicexchange.com/jxportal-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<jsp:useBean id="user" scope="session"
/>
<jsp:useBean id="adminMenu" scope="session"
/>
<c:set target="$" property="securityLevelNumber"
value="${user.securityLevelNumber}"/>

<jxp:accessControl multiLoginCheck="true" securityLevelNumber="$">
<tags:layout title="Admin - Agency Parameters" selectedMenu="7">
<tags:menuTabAdmin tabData="${adminMenu.menuTabs}"
selectedTab="links"/>
<jsp:include page="/admin/legacy/ChangeLinkContent.jsp" />
</tags:layout>
</jxp:accessControl>

2 comments
Comment actions Permalink

This is strange because the Copyright plugin doesn't do anything with JSP files - only Java files.

You don't mention what version of Idea you have and what version of the Copyright plugin you have.

Rick

0
Comment actions Permalink

It would have been latest/greatest at the time. I would say don't worry
about it. The problem has not been repeatable. I will document better
next time.

Rick Maddy wrote:

>This is strange because the Copyright plugin doesn't do anything with JSP files - only Java files.
>
>You don't mention what version of Idea you have and what version of the Copyright plugin you have.
>
>Rick

>

0

Please sign in to leave a comment.