Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.            
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet: 
  Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.402.b06-1.el7_9.   1/1 
error: lua script failed: /var/lib/rpm-state//copy_jdk_configs.lua:39: attempt to index a nil value (global 'arg')

Error in PRETRANS scriptlet in rpm package java-1.8.0-openjdk-headless

lua script fails, then openjdk is not properly installed