Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NullPointerException when invoking <PCTLoadSchema ..../> task. #88

Closed
GoogleCodeExporter opened this issue Mar 28, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Invoke the <DlcHome value="..."/> task at the beginning of the project.
2. Invoke the <PCTLoadSchema ..../> task without defining the dlcHome attribute 
in a <target ....>.

What is the expected output? What do you see instead?
java.lang.NullPointerException on the line with <PCTLoadSchema.../>

What version of the product are you using? On what operating system?
PCT-192.jar

Please provide any additional information below.
Workaround: Defining the dlcHome attribute on the task resolved the issue.

The problem was introduced with commit 7af36d547d94, where the hard coding on 
the call to setProcedure() was removed from PCTLoadSchema.execute(). It appears 
that PCTLoadSchema does not invoke setDlcHome in its base class if <DlcHome...> 
task was included in the project.

1. The error originates from PCTLoadSchema.execute() at 
setProcedure(getProgressProcedures().getLoadSchemaProcedure());
2. The reason is the getProgressProcedures() returns null, due to the private 
variable pp in PCT.java being null.

Original issue reported on code.google.com by simon.l....@gmail.com on 8 Mar 2015 at 5:12

@GoogleCodeExporter
Copy link
Author

Thanks for reporting the issue !
That will probably be fixed soon.

Original comment by g.quer...@gmail.com on 8 Mar 2015 at 4:22

  • Changed state: Accepted
  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Missing checkDlcHome() call in PCTLoadSchema.
Will be avail in next version of PCT.

Thanks for having reported !

Original comment by g.quer...@gmail.com on 12 Mar 2015 at 8:24

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

jakejustus added a commit that referenced this issue May 9, 2015
Fixed NPE when getProgressProcedures() was called before checkDlcHome()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant