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

Null Pointer dereference in PAMInitialMeans.java #4

Closed
Machiry opened this issue Jul 29, 2015 · 2 comments
Closed

Null Pointer dereference in PAMInitialMeans.java #4

Machiry opened this issue Jul 29, 2015 · 2 comments

Comments

@Machiry
Copy link

Machiry commented Jul 29, 2015

There is a NULL Pointer dereference in https://github.com/elki-project/elki/blob/master/elki/src/main/java/de/lmu/ifi/dbs/elki/algorithm/clustering/kmeans/initialization/PAMInitialMeans.java#L151.

This happens when the if condition i.e https://github.com/elki-project/elki/blob/master/elki/src/main/java/de/lmu/ifi/dbs/elki/algorithm/clustering/kmeans/initialization/PAMInitialMeans.java#L155 is never taken.

We have implemented our own distance computation algorithm in which the condition will never be taken.

@kno10
Copy link
Member

kno10 commented Jul 31, 2015

Yes, the code assumes there is at least one finite distance value.
I will add an error message if this happens.
Am 29.07.2015 11:26 nachm. schrieb "Machiry Aravind Kumar" <
notifications@github.com>:

There is a NULL Pointer dereference in
https://github.com/elki-project/elki/blob/master/elki/src/main/java/de/lmu/ifi/dbs/elki/algorithm/clustering/kmeans/initialization/PAMInitialMeans.java#L151
.

This happens when the if condition i.e
https://github.com/elki-project/elki/blob/master/elki/src/main/java/de/lmu/ifi/dbs/elki/algorithm/clustering/kmeans/initialization/PAMInitialMeans.java#L155
is never taken.

We have implemented our own distance computation algorithm in which the
condition will never be taken.


Reply to this email directly or view it on GitHub
#4.

@kno10
Copy link
Member

kno10 commented Aug 3, 2015

Should be closed by: b48eb01

@kno10 kno10 closed this as completed Aug 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants