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

[Bug]: Transform "Generate random value" Unexpected error. ERROR: java.lang.NullPointerException #3592

Closed
qmolla opened this issue Jan 30, 2024 · 1 comment · Fixed by #3596
Assignees
Labels
bug P2 Default Priority Transforms
Milestone

Comments

@qmolla
Copy link

qmolla commented Jan 30, 2024

Apache Hop version?

2.7.0

Java version?

openjdk version "11.0.18" 2023-01-17 LTS (windows)

Operating system

Windows

What happened?

Transform Generate random value for types Random string, Random integer and Random number gives us an unexpected error.

2024/01/30 14:24:31 - Generate random value.0 - ERROR: Unexpected error
2024/01/30 14:24:31 - Generate random value.0 - ERROR: java.lang.NullPointerException
2024/01/30 14:24:31 - Generate random value.0 - at org.apache.hop.pipeline.transforms.randomvalue.RandomValue.getRandomValue(RandomValue.java:67)

image

Same Error running pipeline on ubuntu server 20.04 ( hop 2.7.0 openjdk version "11.0.21" 2023-10-17)

The same pipeline on hop 2.6 runs wihtout error.

Issue Priority

Priority: 2

Issue Component

Component: Transforms

@nadment
Copy link
Contributor

nadment commented Jan 30, 2024

Indeed, if you use the random generation transformation without input rows, there's a bug. As a workaround
use the transformation with a datagrid as input with one row.

@nadment nadment self-assigned this Jan 30, 2024
usbrandon added a commit that referenced this issue Feb 10, 2024
Transform "Generate random value" throw NPE if no input row #3592
@hansva hansva added this to the 2.8 milestone Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug P2 Default Priority Transforms
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants